2108 solutions found
Page 7 of 106votes
In PHP, I see the word cURL in many PHP projects. What is it? How does it work? Reference Link: [cURL](http://php.net/manual/en/book.curl.php)
votes
Is there a way in PHP to make HTTP calls and not wait for a response? I don't care about the response, I just want to do something like `file_get_contents()...
votes
I have following $var = "2010-01-21 00:00:00.0" I'd like to compare this date against today's date (i.e. I'd like to know if thi...
votes
How can I remove duplicate values from an array in PHP?
votes
I have the following code <?php $error = array(); $error['something'] = false; $error['somethingelse'] = false; if (!empt...
votes
Is it possible to have a PHP function that is both recursive and anonymous? This is my attempt to get it to work, but it doesn't pass in the function name....
votes
I have some troubles with an array. I have one array that I want to modify like below. I want to remove element (elements) of it by index and then re-index arra...
votes
Does anybody know the correct way to `post` JSON using `Guzzle`? $request = $this->client->post(self::URL_REGISTER,array( 'content-typ...
votes
I get a strange PHP error after updating my php version to 5.4.0-3. I have this array: Array ( [host] => 127.0.0.1 [port] =&...
votes
What is the simplest way to tell if a user is using a mobile device to browse my site using PHP? I have come across many classes that you can use but I was h...
votes
Looking at the [php documentation on setting a cookie][1] I see that I can set an expiration date for the cookie. You can set the cookie to expire at the end o...
votes
How can we perform bulk database insertions in Laravel using Eloquent ORM? I am working with an XML document, looping through its elements. I want to accompl...
votes
I want the following output:- > About to deduct 50% of € 27.59 from your Top-Up account. when I do something like this:- $variablesArray[0] = &...
votes
I have a function isNotEmpty which returns true if the string is not empty and false if the string is empty. I've found out that it is not working if I pass...
votes
I've just updated my php version to 7.4, and i noticed this error pops up: > Array and string offset access syntax with curly braces is deprecated...
votes
One of my fields in one of my entities is a "datetime" variable. How can I convert this field into a string to render in a browser? Here is a co...
votes
Is there something similar to a `phpinfo()` - that would display the version for CodeIgniter?
votes
My code to add one day to a date returns a date before day adding: `2009-09-30 20:24:00` date after adding one day SHOULD be rolled over to the next month: `1...
votes
I have two controllers `SubmitPerformanceController` and `PrintReportController`. In `PrintReportController` I have a method called `getPrintReport`. How...
votes
How can I turn a **string** below into an **array**? pg_id=2&parent_id=2&document&video This is the array I am looking for, array(...