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? Quote 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) ??? Quote 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. Quote 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. Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.