-
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!
- Kerékpárosok, bringások ide!
- Mibe tegyem a megtakarításaimat?
- AMD Navi Radeon™ RX 9xxx sorozat
- Beköszönt a hajlítható telefonok aranykora
- Parfüm topik
- Android alkalmazások - szoftver kibeszélő topik
- Kuponkunyeráló
- Újabb tanúsítványt kapott a Poco X8 Pro Max
- Assetto Corsa EVO
- A fociról könnyedén, egy baráti társaságban
- További aktív témák...
- Zbook Studio G8 15.6" 4K OLED érintő i7-11800H RTX 3070 16GB 512GB NVMe magyar vbill gar
- Garanciális Gamer PC Ryzen 5 5600GT Rtx 3060ti 8GB 16GB RAM 512GB SSD
- ZBook Firefly 14 G10 ,14" FHD+ IPS érintő i7-1355U RTX A500 16GB 512GB NVMe magyar vbill gar
- 27% ASUS ROG Strix OLED XG27AQDNG Monitor !
- 27% Samsung Odyssey G5 S27FG506SU OLED Monitor !
- HIBÁTLAN iPhone 15 Pro 128GB Natural Titanium -1 ÉV GARANCIA - Kártyafüggetlen, MS4226
- iPhone 13 Pro 128GB 100% (1év Garancia)
- Tablet felvásárlás!! Samsung Galaxy Tab A8, Samsung Galaxy Tab A9, Samsung Galaxy Tab S6 Lite
- GYÖNYÖRŰ iPhone 14 Pro Max 128GB Deep Purple -1 ÉV GARANCIA - Kártyafüggetlen, MS3791
- iPhone 11 64GB Black -1 ÉV GARANCIA - Kártyafüggetlen, MS4346, 100% Akksi
Állásajánlatok
Cég: PCMENTOR SZERVIZ KFT.
Város: Budapest
Cég: Central PC számítógép és laptop szerviz - Pécs
Város: Pécs


