Creating a PHP array from variables

It is possible to use compact PHP function to create array from variables. compact function accepts the names of variables as parameters. These names are string names of variables. The resulting array will contain names of variables as keys and values of variables as values of those array elements.

Comments

Popular posts from this blog

Absolute and relative path in HTML pages

Errors

goto PHP operator