Passing variables to a function

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Bind
Forum Contributor
Posts: 102
Joined: Wed Feb 03, 2010 1:22 am

Re: Passing variables to a function

Post by Bind »

thanks for array_map too !
User avatar
AbraCadaver
DevNet Master
Posts: 2572
Joined: Mon Feb 24, 2003 10:12 am
Location: The Republic of Texas
Contact:

Re: Passing variables to a function

Post by AbraCadaver »

tzirtzi wrote:Wow. AdoDB looks like it would have saved... well, a huge amount of coding. At this point, I'm not sure it would be worth going back and changing things.. but next time, I definitely will be using it.

Thanks for the heads up on array_map - I'll be using that :).
Aside from AdoDB, check these that are built-in (many times) to PHP:

http://us2.php.net/pdo
http://us2.php.net/mysqli

Prepared statements take care of most of these things for you.
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.
Post Reply