Please define what stdClass is.
I have an array:
array( 4 => 'apple', 7 => 'orange', 13 => 'plum' )
Is there a catchall function somewhere that works well for sanitizing user input for SQL injection and XSS att
What is this?
This is a number of answers about warnings, errors, and notices you might encounter while progra
It is currently said that MD5 is partially unsafe. Taking this into consideration, I'd like to know which
I know that PHP doesn't yet have native Enumerations. But I have become accustomed to them from the Java
How can I sort this array by the value of the "order" key?
Even though the values are currently sequential, th
I'm setting up a new server and want to support UTF-8 fully in my web application. I have tried this in
I'm running a PHP script and continue to receive errors like:
Notice: Undefined variable: my_variable_na
How can I get the client IP address using PHP?
I want to keep record of the user who logged into my website t
Every now and then I hear the advice "Use bcrypt for storing passwords in PHP, bcrypt rules".
But what is bcr
When should I use require vs. include?
When should I use require_once vs. include_once?
Is it possible to redirect a user to a different page through the use of PHP?
Say the user goes to www.exampl
How can I write two functions that would take a string and return if it starts with the specified character/st
I have checked my PHP ini file (php.ini) and display_errors is set and also error reporting is E_ALL. I have r
In PHP 5, what is the difference between using self and $this?
When is each appropriate?
Let me prefix this by saying that I know what foreach is, does and how to use it. This question concerns how i
How can one parse HTML/XML and extract information from it?
If I have a YouTube video URL, is there any way to use PHP and cURL to get the associated thumbnail from the Y