note 81189 added to function.array-map

From: Date: Sun, 17 Feb 2008 22:10:46 +0000
Subject: note 81189 added to function.array-map
Groups: php.notes 
Request: Send a blank email to php-notes+get-136231@lists.php.net to get a copy of this message
Could also use things like... array_keys(); and array_values(); offcourse... However it's just an example off recursion via this function.. Which I found pretty handy at times dealing with arrays.. could also use: <?php call_user_func(array($this, __FUNCTION), $args); ?> or <?php call_user_fuc_array(array($this, __FUNCTION__), $array); ?> or <?php class{ public function __construct($arg){ if(is_array($arg)){ new self($arg); } else{ echo $arg.'<br/>'.PHP_EOL; } } } ?> Anyway.. plenty off examples.. It was just an idea for others... ---- Server IP: 83.137.20.135 Probable Submitter: 62.234.63.246 ---- Manual Page -- http://www.php.net/manual/en/function.array-map.php Edit -- https://master.php.net/note/edit/81189 Del: integrated -- https://master.php.net/note/delete/81189/integrated Del: useless -- https://master.php.net/note/delete/81189/useless Del: bad code -- https://master.php.net/note/delete/81189/bad+code Del: spam -- https://master.php.net/note/delete/81189/spam Del: non-english -- https://master.php.net/note/delete/81189/non-english Del: in docs -- https://master.php.net/note/delete/81189/in+docs Del: other reasons-- https://master.php.net/note/delete/81189 Reject -- https://master.php.net/note/reject/81189 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#136231) next »