Special welcome gift. Get 50% off your first courses with code “AS50”. Find out more!

PHP Q/A

Showing 21 - 30 of 91 results
A static variable is defined within a function only the first time, and its value can be modified during function...
If you would want to check for a certain type, like an integer or boolean, the === will do that exactly like...
MVC stands for Model View Controller. The controller handles data passed to it by the view and also passes data...
Getters and setters are methods used to declare or obtain the values of variables, usually private ones. They are important...
Private â€“ Visible only in its own classPublic â€“ Visible to any other code accessing the classProtected â€“ Visible only to classes parent(s)...
The count() function is used to return the number of elements in an array. Understanding of arrays and array related helper functions...
In PHP, type hinting is used to specify the expected data type (arrays, objects, interface, etc.) for an argument in...
The difference between GET and POST are given below: GET POST GET method is used for requesting data from a...
Any URL can be connected to PHP easily by making use of the library called cURL. This comes as a...
The 4 main steps used to create a new MySQL database in PHP are given below: