I want to convert these types of values, '3', '2.34', '0.234343', etc. to a numb
PHP treats all arrays as associative, so there aren't any built in functions. Can anyone recommend a fair
I saw different binaries for PHP, like non-thread or thread safe?
What does this mean?
What is the differen
I'm a little confused why I see some code in PHP with string placed in single quotes and sometimes in dou
I'm integrating an API to my website which works with data stored in objects while my code is written usi
Some elements in my array are empty strings based on what the user has submitted. I need to remove those eleme
I'm trying to create a randomized string in PHP, and I get absolutely no output with this:
Which PHP function can return the current date/time?
I started by googling and found the article How to write INSERT if NOT EXISTS queries in standard SQL which ta
A few years ago I installed Apache 2.2x and PHP 5.3.1 on a Linux server I maintain. I used .tar.gz's and
I am trying to select data from a MySQL table, but I get one of the following error messages:
I want to return JSON from a PHP script.
Do I just echo the result? Do I have to set the Content-Type header?
I have a PHP array as follows:
$messages = [312, 401, 1599, 3, ...];
I want to delete the element containin
How can I detect which request type was used (GET, POST, PUT or DELETE) in PHP?
I want to put a copyright notice in the footer of a web site, but I think it's incredibly tacky for the y
When and why should I use public, private, and protected functions and variables inside a class? What is the d
I have tried reading some articles, but I am not very clear on the concepts yet.
Would someone like to take a
I need to keep a session alive for 30 minutes and then destroy it.