Les 7 – Werken met Arrays

* * * * * * * * * * * * * SOURCE * * * * * * * * * * * * * * * * * *

$a = ‘hello world’;

$A = ‘upper case’;

$b = 45;
$c = 100.90221;

$d = true;

$e = array(‘one’, ‘two’, 3);

$f = array(“firstname” => “John”, “age” => 25, “lastname” => “Zohn”, );

$e[] = “three”;

sort($e);

//$output = count($e);

class myObjClass {

function One() {

echo ‘this is the output’;

}

}

$myObj = new myObjClass();

$myObj – > One();

print_r($f);

asort($f);

print_r($f);

echo $f[“firstname”]

echo ‘<BR>’.$a.

‘ ‘.$A.($b + $b);

 

Array Functies:


http: //php.net/manual/en/function.array.php

BEKIJK ALLEVoeg notitie toe
JIJ
Voeg een reactie toe
 
© 2019 - Soofos B.V.