Hirdetés
Új hozzászólás Aktív témák
-
Sk8erPeter
nagyúr
válasz
Speeedfire
#14970
üzenetére
Az előzőekhez még annyit, hogy PHP-ben nincsenek - pl. C-ből, C++-ból megismert - mutatók. Referenciák vannak:
http://www.php.net/manual/en/language.references.whatare.php"What References Are
References in PHP are a means to access the same variable content by different names. They are not like C pointers; for instance, you cannot perform pointer arithmetic using them, they are not actual memory addresses, and so on. See What References Are Not for more information. Instead, they are symbol table aliases. Note that in PHP, variable name and variable content are different, so the same content can have different names. The closest analogy is with Unix filenames and files - variable names are directory entries, while variable content is the file itself. References can be likened to hardlinking in Unix filesystem."
Ezeket amúgy érdemes átfutni:
http://www.php.net/manual/en/language.references.php -
moltam88
tag
válasz
Speeedfire
#14970
üzenetére
By default, function arguments are passed by value (so that if the value of the argument within the function is changed, it does not get changed outside of the function). To allow a function to modify its arguments, they must be passed by reference.
Vagyis alapértelmezetten érték szerinti paraméterátadás történik, új memóriát foglal a paraméternek.
-
trisztan94
őstag
válasz
Speeedfire
#14970
üzenetére
Szerintem csak pointer, legalábbis a legtöbb normális OOP nyelv így működik.
Új hozzászólás Aktív témák
- OLED monitor topic
- Trollok komolyan
- Milyen széket vegyek?
- Battlefield 6
- exHWSW - Értünk mindenhez IS
- OFF TOPIC 44 - Te mondd, hogy offtopic, a te hangod mélyebb!
- Milyen billentyűzetet vegyek?
- Xiaomi 14T - nem baj, hogy nem Pro
- Samsung Galaxy S25 Ultra - titán keret, acélos teljesítmény
- Konteó topic
- További aktív témák...
- Apple iPhone 11 Pro 256gb - Szép állapot, új kijelző, akku 77%, akár beszámítással
- Thinkpad T14 Gen5 14" FHD+ IPS Ultra 7 155U 16GB 512GB NVMe ujjlolv IR kam gar
- Dell Pro 14 Plus 14" FHD+ IPS Ultra 7 265U 16GB 512GB NVMe ujjlolv IR kam gar
- Apple iPhone 12 Pro Max / 128GB / Kártyafüggetlen / 12Hó garancia
- iPhone 13 Pro 128GB Független Újszerű/1-3 hónap gar./Akku 85%/p4545
- MacBook Pro 13, 14, 15, 16, MacBook Air M1, M2 M3 M4 bill magyarosítás lézerrel / sapkacserével
- HIBÁTLAN iPhone 13 mini 128GB Starlight -1 ÉV GARANCIA - Kártyafüggetlen, MS3288
- Azonnali készpénzes AMD CPU AMD VGA számítógép felvásárlás személyesen / postával korrekt áron
- Számlás!Windows 10 Pro 11 Pro,Windows 10 Home 11 Home, Office 2016,2019,2021 ,Vírusirtok,Mac
- GYÖNYÖRŰ iPhone 13 mini 256GB Blue -1 ÉV GARANCIA - Kártyafüggetlen, MS3180
Állásajánlatok
Cég: Laptopműhely Bt.
Város: Budapest
Cég: PCMENTOR SZERVIZ KFT.
Város: Budapest


