-
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!
- exHWSW - Értünk mindenhez IS
- HDD probléma (nem adatmentés)
- HBO Max
- Xiaomi 15T Pro - a téma nincs lezárva
- Anime filmek és sorozatok
- Hivatalosan is elkezd védekezni az Intel csodafegyvere ellen az új Geekbench
- Kétezer eurós csomag lehet a Vivo X300 Ultra
- Poco F8 Ultra – forrónaci
- Autószerelők, autószerelés
- Kertészet, mezőgazdaság topik
- További aktív témák...
- Apple iPhone 14 Pro Max 128GB Space Black használt, szép állapot 100% akku 6 hónap garancia
- Telefon felvásárlás!! Apple iPhone SE (2016), Apple iPhone SE2 (2020), Apple iPhone SE3 (2022)
- iPhone 17 256GB - BONTATLAN - (3év)
- Lenovo X390 i5 8265U, 8GB RAM, 256-512GB SSD, jó akku, számla, 6 hó gar
- LG 32G810SA-W - 32" IPS Smart - UHD 4K - 144Hz 1ms - NVIDIA G-Sync - FreeSync Premium - HDR 400
Állásajánlatok
Cég: Laptopműhely Bt.
Város: Budapest

