-
Fototrend

Új hozzászólás Aktív témák
-
FehérHolló
veterán
Nem hinném. A PHP stringfeldolgozása bekavarhat a verziótól függően. Mindjárt keresek példát php.net-en.
Szerk.:
Always use quotes around a string literal array index. For example, $foo['bar'] is correct, while $foo[bar] is not. But why? It is common to encounter this kind of syntax in old scripts:
<?php
$foo[bar] = 'enemy';
echo $foo[bar];
// etc
?>This is wrong, but it works. The reason is that this code has an undefined constant (bar) rather than a string ('bar' - notice the quotes). PHP may in future define constants which, unfortunately for such code, have the same name. It works because PHP automatically converts a bare string (an unquoted string which does not correspond to any known symbol) into a string which contains the bare string. For instance, if there is no defined constant named bar, then PHP will substitute in the string 'bar' and use that.
Ezek szerint tényleg mindegy. Ettől függetlenül kipróbálnám " jellel.
Új hozzászólás Aktív témák
● olvasd el a téma összefoglalót!
- BESZÁMÍTÁS! MSI B450 R5 5600X 16GB DDR4 512GB SSD RTX 2070 Super 8GB Rampage SHIVA Adata 600W
- AKCIÓ! Asus ROG Strix B365 i5 9400F 16GB DDR4 512GB SSD RTX 2060 Super 8GB Zalman S2 TG 600W
- Gamer PC-Számítógép! Csere-Beszámítás! R7 5700 / RTX 2080Ti 11GB / 16GB DDR4 / 1TB SSD!
- 27% - Samsung S27FG904XU Odyssey 3D IPS Monitor! 3840x2160 / 165Hz / 1ms / FreeSync
- Asus Zephyrus G16 GAMING Notebook! Ultra 9 185H / RTX 4060 / 32GB 7500MHz / 1TB! BeszámítOK
Állásajánlatok
Cég: Laptopműhely Bt.
Város: Budapest

