Week 3 Flashcards
Advantages of functions:
Functions allow the developer to:
Organise their code into a logical structure
Allocating specific behaviour to a function
promoting the reuse of code
Should function names be unique?
Yes
no function overloading in php
What does a function prototype define?
Number and type of parameters
Data type of the returned value.
WQill variable functions work with language constructs such as:
echo, print, unset(), isset(), empty()
No
What can anonymous functions do?
Pass small sections of logic into functions
can be assigned to variables.
What is a recursive function?
One that calls itself
What is PHPs default characters reading?
ISO-8859-1 standard
Equivalent to 7-biy sacii for first 127 characters.