Bogarászom a Joomla forráskódját, bele kéne nyúlnom itt-ott. Új vagyok a terepen.
Ebben a fájlban: https://github.com/openshift/joomla-example/blob/master/php/includes/ro… látható a 75. sor:
$vars += parent::parse($uri);
Hogyhogy += kerül itt elő? Ha erre az operátorra rákeresek a php.net-en (http://php.net/manual/en/language.operators.assignment.php), nem látok ilyen megoldást. Ugyanakkor ez nyilván nem hibás, és ha nyomkövetem a Joomlát és kiíratom ezt a $vars-t, akkor ilyet ír ki:
Array
(
[format] : html
[Itemid] : 119
[option] : com_jumi
[view] : application
[fileid] : 8
)
Ez hogy alakulhat ki?
(Amúgy a "házi" nyomkövetésem ebből áll csak: $zo1=print_r($vars,true); $zol=str_replace ('=>',':', $zo1); system("echo '".$zol."'>> /tmp/debug"); )
- 1513 megtekintés
Hozzászólások
Az altalad linkelt oldalrol:
"n addition to the basic assignment operator, there are "combined operators" for all of the binary arithmetic, array union and string operators that allow you to use a value in an expression and then set its value to the result of that expression. For example:"
Itt meg megtudhatod, hogy az a "union" mit jelent:
http://php.net/manual/en/language.operators.array.php
----------------------
"ONE OF THESE DAYS I'M GOING TO CUT YOU INTO LITTLE PIECES!!!$E$%#$#%^*^"
--> YouTube csatornám
- A hozzászóláshoz be kell jelentkezni
Köszi, tényleg! :-)
- A hozzászóláshoz be kell jelentkezni