How to created mixed arguments function

This way useful for create mixed arguments function.

function foo()
{
    $args = func_get_args();
    print_r($args);
}
 
foo(1, 1256, 6, 17); //mixed ...
 
-------------------Out----------------------
Array
(
    [0] => 1
    [1] => 1256
    [2] => 6
    [3] => 17
)

Tags

No tag here.

Recommended pages

Better parse_str in php...

parse_str() is fine for simple stuff but it's not the same as PHP's built way of creating the $_GET magic variable. Why?!?......

Resize image function...

Resize image function for jpg format. $mood between max and min. if you choose max, this mean max size of image is $ta otherwise min size of image is $ta. function makeTheThumb( $ppath, $ta, $mood ) ...

Parse a string into separate words...

Parse a string into separate words (array output). function parser($str, $char = ' ') { $str = trim($str); $str = $str . $char; $len = strlen($str); $words = array(); $w = '...

Extract numbers from a unicode string...

Quick extract numbers from a unicode string......