PHP Classes

File: index.php

Recommend this page to a friend!
  Classes of adam berger  >  PHP Class Constructor with Parameters  >  index.php  >  Download  
File: index.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Class Constructor with Parameters
How to access all the class constructor parameters
Author: By
Last change:
Date: 11 months ago
Size: 400 bytes
 

Contents

Class file image Download
<?php

          $adam
= "1 person";
         
$ginter = "2 person";
             
$bodzio = "3 person";
             
$endriu = "4 person";
             
$bandzo = "5 person";
             
             
         
           
$test = new special_arguments($adam, $ginter, $bodzio, $endriu, $bandzo);
      
$a = $test->car();
      
      
      
        foreach(
$a[0] as $person){
           echo
$person."<br>";
          }

For more information send a message to info at phpclasses dot org.