how do i define dynamic array in php
like in c or cpp
if any body find this pls reply me soon

regards
zainul

$my_array = array ();
$my_array[] = "Blergh"; // Appends an item

Arrays are always dynamic in PHP as pritaeas pointed out. As in most of the dynamic data structures in C++, you can also use array_pop and array_push in PHP.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.