Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- php array bracket method
March 20, 2015, 5:03 pm
rate this thread
Neither w3schools nor php.net shows how to apply these two items on a
Possible ways are
1) $arr['1']="val"; $arr['2']="val";
2) $arr['1']="val";, $arr['2']="val";
My server has php 5.5.
Which would be best to use?
Re: php array bracket method
Good progress Richard. Now to real progress, make your simple
test cases BEFORE you write the group.
FYI, the php interpreter doesn't care at all about line endings
unless they are within quotes. You could write an entire php
script on one line, but it would not be a best practice.