Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $stmt->bind_param('sssd', $code, $language, $official, $percent);
- $stmt->bind_param('sssd', $code, $language, $official, $percent);
- function foo(){
- if ( func_num_args() > 0 ){
- var_dump(func_get_args());
- }
- }
- function bind_param(){
- if ( func_num_args() <= 1 ){
- return false; //not enough args
- }
- $format = func_get_arg(0)
- $args = array_slice(func_get_args(), 1)
- //etc
- }
- $var->bind()->bindString($code)
- ->bindString($language)
- ->bindString($official)
- ->bindDecimal($percent);
- function my_func() {
- $args = func_get_args();
- foreach ($args as $arg) {
- echo "Arg: $argn";
- }
- }
- function foo()
- {
- $numargs = func_num_args();
- echo "Number of arguments: $numargs<br />n";
- if ($numargs >= 2) {
- echo "Second argument is: " . func_get_arg(1) . "<br />n";
- }
- $arg_list = func_get_args();
- for ($i = 0; $i < $numargs; $i++) {
- echo "Argument $i is: " . $arg_list[$i] . "<br />n";
- }
- }
- foo(1, 2, 3);
Add Comment
Please, Sign In to add comment