-
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!
- Na, milyen hardver kerül a fa alá?
- Google Pixel topik
- Hobby rádiós topik
- eMAG vélemények - tapasztalatok
- Elemlámpa, zseblámpa
- World of Warships
- Milyen TV-t vegyek?
- Hardcore pizza és kenyér topik
- És akkor a memóriapánik után beköszöntött a HDD-pánik
- Bemutatkozott a Poco X7 és X7 Pro
- További aktív témák...
- REFURBISHED és ÚJ - DELL Universal Dock UD22 (DisplayLink)
- Samsung Galaxy S25 Ultra / 12/512GB / Kártyafügetlen / MediaMarkt Garancia 2028.12.02.-ig
- Creative Sound BlasterX G6 7.1 USB külső hangkártya
- ÁRGARANCIA!Épített KomPhone i5 14600KF 16/32/64GB RAM RTX 5070 12GB GAMER PC termékbeszámítással
- Garmin USB ANT Stick jeladó eladó
Állásajánlatok
Cég: Laptopszaki Kft.
Város: Budapest
Cég: PCMENTOR SZERVIZ KFT.
Város: Budapest


