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

Encrypt and Decrypt function with different outputs...

Encrypt function return different value with each execute but decrypt function return input value. for example: first execute: encrypt('hello') => 'axxdfg34', decrypt('axxdfg34') return 'hello'...

Gregorian to Persian Date Convertor...

Gregorian to Persian Date Convertor....

Human readable file size...

This function return formatting of file sizes in a human readable format. function formatFileSize( $size ) { $file_size = $size; $i = 0;   $name = array( 'byte', 'kB', 'MB', '...

alphaID - Translates a number to a short alhanumeric version...

Translates a number to a short alhanumeric version. e.g.: 9007199254740989 --> PpQXn7COf In most cases this is better than totally random ID generators because this can easily avoid duplicate ID's. Fo...