monkeybidz Posted September 30, 2007 Share Posted September 30, 2007 Can this $msg[] be passed as is and = $msg[] when passed or will it just =$msg? Quote Link to comment https://forums.phpfreaks.com/topic/71205-passing-variable-with-brackets/ Share on other sites More sharing options...
Barand Posted September 30, 2007 Share Posted September 30, 2007 $msg[] is meaningless unless you are assigning a value to it. $msg[] = 'Some value'; In which case it is equivalent to array_push($msg,'Some value'); Quote Link to comment https://forums.phpfreaks.com/topic/71205-passing-variable-with-brackets/#findComment-358176 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.