Hey Ante,

Ante Drnasin wrote:
I would just like to hear you oppinions about something like this...(please don't shoot me :) )

ex1:
function AddToDb(mysql_scape_string($text)) {

I'd say it's not too useful but opens up a can of worms: - You're adding code to a declaration, IMHO confusing - How complicated code is allowed, e.g. what happens with function foo(bar($p1, $p2)) { or function foo($p2->bar($p1), $p1->bar($p2)) {

I think we should keep the language simple and stay with
$text = mysql_scape_string($text);
at the beginning of the function. That way everybody understands what's going on.


- Chris

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to