note 91067 added to function.preg-split

From: Date: Sat, 23 May 2009 14:56:27 +0000
Subject: note 91067 added to function.preg-split
Groups: php.notes 
Request: Send a blank email to php-notes+get-155907@lists.php.net to get a copy of this message
If you need convert function arguments without default default values and references, you can try this code: <?php $func_args = '$node, $op, $a3 = NULL, $form = array(), $a4 = NULL' $call_arg = preg_match_all('@(?<func_arg>\$[^,= ]+)@i', $func_args, $matches); $call_arg = implode(',', $matches['func_arg']); ?> Result: string = "$node,$op,$a3,$form,$a4" ---- Server IP: 87.124.35.190 Probable Submitter: 86.129.122.193 ---- Manual Page -- http://www.php.net/manual/en/function.preg-split.php Edit -- https://master.php.net/note/edit/91067 Del: integrated -- https://master.php.net/note/delete/91067/integrated Del: useless -- https://master.php.net/note/delete/91067/useless Del: bad code -- https://master.php.net/note/delete/91067/bad+code Del: spam -- https://master.php.net/note/delete/91067/spam Del: non-english -- https://master.php.net/note/delete/91067/non-english Del: in docs -- https://master.php.net/note/delete/91067/in+docs Del: other reasons-- https://master.php.net/note/delete/91067 Reject -- https://master.php.net/note/reject/91067 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#155907) next »