366 solutions found in php-dev
Page 4 of 19votes
What is output buffering and why would you use it in PHP?
votes
Are PHP variables passed by value or by reference?
votes
I am wondering, What is the proper way for inserting PHP variables into a string? <br/><br/> **This way:**<br/> echo "Welcome &q...
votes
I have some PHP code. When I run it, a warning message appears. How can I remove/suppress/ignore these warning messages?
votes
I'm building a REST web service client in PHP and at the moment I'm using curl to make requests to the service. How do I use curl to make authenticat...
votes
I have this array Array ( [data] => Array ( [0] => Array ( [page_id] => 204725966262...
votes
I want to create a custom page for my WordPress blog that will execute my PHP code in it, whilst remaining a part of the overall site CSS/theme/design. The P...
votes
How can I convert an array to a SimpleXML object in PHP?
votes
I've seen the following new line in PHP 7, but nobody really explains what it means. I've googled it and all they talk about is will you be enabling it...
votes
> This is intended to be a general reference question and answer covering many of the never-ending *"How do I access data in my JSON?"* questions....
votes
I am aware of function `debug_backtrace`, but I am looking for some ready to use implementation of function like `GetCallingMethodName()`? It would be perfect i...
votes
I want to get the first letter of a string and I've noticed that `$str[0]` works great. I am just not sure whether this is 'good practice', as that...
votes
I know that this issue has been posted many times, but for me it seems to be a different problem. Indeed, this error > Warning: require(vendor/autoload.ph...
votes
Because of the Twitter API 1.0 retirement as of [June 11th 2013](https://dev.twitter.com/blog/api-v1-retirement-date-extended-to-june-11), the script below does...
votes
I have this function to validate an email addresses: function validateEMAIL($EMAIL) { $v = "/[a-zA-Z0-9_-.+]+@[a-zA-Z0-9-]+.[a-zA-Z]+/"...
votes
After the latest update of PHP Intelephense that I get today, Intelephense keeps showing an error for an undefined symbol for my route (and other classes too)....
votes
I want to remove the `/public/` fragment from my Laravel 5 URLs. I don't want to run a VM, this just seems awkward when switching between projects. I...
votes
I know how to insert it to the end by: $arr[] = $item; But how to insert it to the beginning?
votes
I'm in the process of converting one of our web applications from CodeIgniter to Laravel. However at this moment we don't want to add the `updated_at` /...
votes
**Expected Input:** getDatesFromRange( '2010-10-01', '2010-10-05' ); **Expected Output:** Array( '2010-10-01', '201...