PHP Coding Tips

Friday, August 17, 2012

PHP Array add element - how to append element to an array

If you have a PHP array and wants to add element to it, you can do it just in this way:$myArray[] = 'new element'; This will add element to php array at its end

13 comments: