PHP Classes

File: example-v2

Recommend this page to a friend!
  Classes of adam berger   Special Arguments   example-v2   Download  
File: example-v2
Role: Example script
Content type: text/plain
Description: php
Class: Special Arguments
Get variable function arguments into arrays
Author: By
Last change: php
Date: 9 years ago
Size: 715 bytes
 

Contents

Class file image Download
<?php
   
   
          $adam
= "1 person";
         
$ginter = "2 person";
         
$bodzio = "3 person";
         
$endriu = "4 person";
         
$bandzo = "5 person";
         
          
## Special Arguments ##
           ## Możemy dowolnie zmieniać na te metody które chcemy ##
           
$test = new special_arguments(array("a"=>$adam, "b"=>$ginter, "c"=>$bodzio, "d"=>$endriu, "e"=>$bandzo));
                  
## albo ##
           
$test = new special_arguments(array( "b"=>$ginter, "d"=>$endriu, "e"=>$bandzo));
                  
## albo ##
           
$test = new special_arguments(array("a"=>$adam, "e"=>$bandzo));
 
        foreach(
$test->person[0] as $person){
           echo
$person."<br>";
      }