2108 solutions found in server-meltdown
Page 15 of 106votes
It seems that PHP's `===` operator is case sensitive. So is there a reason to use `strcmp()`? Is it safe to do something like the following? if ($...
votes
I am using Laravel with Redis .When I am trying to access a key by get method then get following error "WRONGTYPE Operation against a key holding the wrong...
votes
Having a look on the PHP documentation, the following two methods of the `DateTime` object would both seem to solve my problem: - <a href="http://au....
votes
Is `ob_start()` used for `output buffering` so that the headers are buffered and not sent to the browser? Am I making sense here? If not then why should we use...
votes
This error message is being presented, any suggestions? > Allowed memory size of 33554432 bytes exhausted (tried to allocate > 43148176 bytes) in php
votes
I found the discussion on [Do you test private method][1] informative. I have decided, that in some classes, I want to have protected methods, but test them....
votes
I need to be able to call a function, but the function name is stored in a variable, is this possible? e.g: ```php function foo () { //code here }...
votes
I need to split my string input into an array at the commas. Is there a way to explode a comma-separated string into a flat, indexed array? Input:...
votes
I'm pretty new at laravel, in fact and I'm trying to create my very first project. for some reason I keep getting this error (I haven't even started...
votes
I have several [PHP][1] pages echoing out various things into [HTML][2] pages with the following code. <meta http-equiv="Content-type" conte...
votes
When I want to remove a Cookie I try unset($_COOKIE['hello']); I see in my cookie browser from firefox that the cookie still exists. How can I...
votes
I'm reading the Laravel Blade [documentation][1] and I can't figure out how to assign variables inside a template for use later. I can't do `{{ $old...
votes
What are the differences? Is there a specific situation or reason for each function? If yes, can you give some examples of those situations? PHP.net says...
votes
I am using [xdebug][1] (php_xdebug-2.1.2-5.3-vc9.dll) on [WAMP][2]. When I use `var_dump` on a large object or variable it does not show the full variable....
votes
I have a codebase where developers decided to use `AND` and `OR` instead of `&&` and `||`. I know that there is a difference in operators' preced...
votes
Is it safe to pass raw base64 encoded strings via GET parameters?
votes
I have a Boolean variable which I want to convert to a string: $res = true; I need the converted value to be of the format: `"true" "fa...
votes
How can I match a space character in a PHP regular expression? I mean like "gavin schulz", the space in between the two words. I am using a regular...
votes
I have two tables, `User` and `Post`. One `User` can have many `posts` and one `post` belongs to only one `user`. In my `User` model I have a `hasMany` rela...
votes
I'm looking for a way to print the call stack in PHP. Bonus points if the function flushes the IO buffer.