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

Comments

Popular posts from this blog

How to construct a B+ tree with example

How to show only month and year fields in android Date-picker?

Visitor Counter Script Using PHP