I have this situation: $array = [ "name" => [ "ro" => [ 0 => "Nume Romana", ], "en" => [ ...
I have this situation: $array = [ "name" => [ "ro" => [ 0 => "Nume Romana", ], "en" => [ ...
I have a php script and need to make this code line compatible to php8.0: if ((is_array($key) && is_array($value)) || (strlen($key) > 0 &a ...
This is now illegal if $a is not initialized at each level. Does exists a syntax to force php8.2 to behave like php5.6 and so auto-initialize the $ ...
I am creating an API that will provide data to a CMS, which will handle managing all orders for my e-commerce in Symfony 6. I have primarily 7 entiti ...
Call time pass by reference was removed in PHP 5.4. But I have a special case where it seems to be still available in PHP 8 (tried it here: www.w3scho ...
I have a class that works on only the two types a and b. My "oldstyle" code today: Now with PHP 8 we have enum and better argument checking option ...
Deprecated: Automatic conversion of false to array is deprecated I'm new to PHP 8 All of the explanations I have seen are pertaining to sessions and ...
I am updating laravel to use php 8.2, according to laravel document here, using "laravel/framework": "^9.43" should be enough. My composer.json are ...
From symfony docs, it looks like that we can use #[Target('service_id')] attribute in order to specify id of service to inject. From other side, one ...
Have upgraded PHP 7.4 to to PHP 8.2.1 on mac osx, and for some reason, can not locate what is causing an issue with the .htaccess file having this cod ...
I want to make preg_match accent insensitive but it doesn't work. Any idea ? ...
I have a web app that used FPDI to create pdf files, using laravel 5.7, setasign/fpdi-fpdf ^2.0 and PHP 7.4. I recently upgraded to laravel 9 (also up ...
I must be missing something... This is suppose to do supplementary validation of optional profile fields. This expects common stuff like trim() and st ...
I have a WordPress page that loads thumbnails of audio tracks using ajax. So as I scroll down the page it loads more rows of thumbnails. After switchi ...
After the project setup tried to run the artisan serve command and got the following exception: I tried to run the Laravel server locally UPD: la ...
I'm new to laravel and trying to make two tables with a one (customer) to many(table) relation and a custom Foreign Key tables.customer(I can not chan ...
How can I solve this issue (undefined offset: 1 at line 30): I want to upgrade to php8 but gets this in php 7,4 (php8 displays a slightly different ...
I've been trying to understand how static scope works in the context of a trait. A great explanation is here: https://stackoverflow.com/a/56935557/213 ...
This works without any warnings in every version of PHP except 8 I think they have changed something with implode and I have tried all the examples t ...