PHP Strict Standards: Only variables should be passed by reference -


this question has answer here:

i got thie warnig: php strict standards: variables should passed reference

and code:

if ((isset($_server['http_if_modified_since']) && array_shift(explode(';', $_server['http_if_modified_since'])) == $gmt_mtime) 

the second line code error one.

first of need explode $_server['http_if_modified_since'] ";" , can use in array_shift function.

<? $exploded = explode(";",$_server['http_if_modified_since']); if ((isset($_server['http_if_modified_since']) && array_shift($exploded) == $gmt_mtime)) ?> 

side note: don't know typo error or not, u need add 1 ending ")" in if condition otherwise parse error.


Comments

Popular posts from this blog

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -