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

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -