Search
 
SCRIPT & CODE EXAMPLE
 

PHP

php get all function arguments


<?php
function foo()
{
    $numargs = func_num_args();
    echo "Number of arguments: $numargs 
";
    if ($numargs >= 2) {
        echo "Second argument is: " . func_get_arg(1) . "
";
    }
    $arg_list = func_get_args();
    for ($i = 0; $i < $numargs; $i++) {
        echo "Argument $i is: " . $arg_list[$i] . "
";
    }
}

foo(1, 2, 3);
?>

Comment

PREVIOUS NEXT
Code Example
Php :: wordpress if is in categroy 
Php :: PHP auto refresh page 
Php :: remove autoupdate wordpress 
Php :: laravel make migration update table 
Php :: laravel migration on delete set null 
Php :: php cors 
Php :: get the value of href in anchar tag php 
Php :: $posts- links() laravel design error 
Php :: use wordpress functions in external php file 
Php :: MForm Attribute für Felder 
Php :: How to get the current date in PHP? 
Php :: create guid in php 
Php :: object of class symfonycomponentformformview could not be converted to string 
Php :: laravel collection get price sum 
Php :: how to set session timeout in codeigniter 
Php :: cast string to int php 
Php :: php get all the mondays of the year 
Php :: how handle the number with k in laravel balde 
Php :: blade capitalize first letter 
Php :: Latest 5 records - Laravel 
Php :: showing database table in php 
Php :: how to change uppercase to lowercase and spaces to _ in php 
Php :: laravel 5.4 forelse 
Php :: php hide decimals if zero 
Php :: laravel join query sum example 
Php :: larvel check two password 
Php :: get type of variable php 
Php :: create admin password in magento 2 
Php :: php déclarer une constante URL 
Php :: php current date get 
ADD CONTENT
Topic
Content
Source link
Name
9+1 =