programmeeromgeving
- XAMP, MAMP of WAMP
- cache off => php.ini 1736 opcache.enable=0 / opcache.enable_cli=0
- display errors => php.ini 432 => display_errors = off —–> display_errors = on
levenscyclus
Variabelen
$ acaseSensitivename_whithout_spaces_or_special_signs = value (int, float, double en real) of string.
Stringfuncties
Strings koppelen => concatenation $a = “tomaten”; $b = “saus”; $a . $b = “tomatensaus” ;
$a = “tomatensaus”;
- strlen() -> strlen($a) = 11;
- trim() -> $a = ” tomatensaus “; trim(a) = “tomatensaus”
- strtolower() / strtoupper() -> $B = strtoupper($a) = TOMATENSAUS; strtolower($b) = “tomatensaus”
- str_replace -> str_replace(“aten”, “tom”, $a) = “tomtomsaus”;
- strpos(), strrpos(), stripos(), strripos() -> zoekt positie strpos(“hooibergstring”, “naaldstring”)
- substr()
- substr_replace()