jfarthing Posted December 21, 2007 Share Posted December 21, 2007 I get this: Parse error: parse error, unexpected T_ARRAY, expecting ')' for the following line of code on my webserver, although I didnt get it on my localhost. function array_remove(array $array, $value, $strict=false) Why? Link to comment https://forums.phpfreaks.com/topic/82728-solved-why-am-i-receiving-a-parse-error/ Share on other sites More sharing options...
papaface Posted December 21, 2007 Share Posted December 21, 2007 Shouldn't it just be: function array_remove($array, $value, $strict=false) ??? Link to comment https://forums.phpfreaks.com/topic/82728-solved-why-am-i-receiving-a-parse-error/#findComment-420754 Share on other sites More sharing options...
p2grace Posted December 21, 2007 Share Posted December 21, 2007 I agree with papface, remove the array before the $array, php automatically assigns data types. Link to comment https://forums.phpfreaks.com/topic/82728-solved-why-am-i-receiving-a-parse-error/#findComment-420756 Share on other sites More sharing options...
jfarthing Posted December 21, 2007 Author Share Posted December 21, 2007 thank you. Link to comment https://forums.phpfreaks.com/topic/82728-solved-why-am-i-receiving-a-parse-error/#findComment-420759 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.