Guest upirate Posted February 27, 2007 Share Posted February 27, 2007 I am getting an error : Parse error: parse error, unexpected '[' in /home/pricetak/public_html/results_beta.php on line 172 line 172: $manu_array=array(); $manu_array[] = [($docinfo['attrs']['@count']), ($manuname)]; Link to comment https://forums.phpfreaks.com/topic/40361-solved-trying-to-assign-a-value-to-a-2-dimensional-array-thanks/ Share on other sites More sharing options...
Orio Posted February 27, 2007 Share Posted February 27, 2007 What are you trying to do in this line? $manu_array[] = [($docinfo['attrs']['@count']), ($manuname)]; Maybe you meant this? $manu_array[] = "[(".$docinfo['attrs']['count']."), (".$manuname.")]"; Orio. Link to comment https://forums.phpfreaks.com/topic/40361-solved-trying-to-assign-a-value-to-a-2-dimensional-array-thanks/#findComment-195288 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.