I'm helping one of my employees learn in . Sadly missing a repl, we just use `vardump($thing)` a ton to figure out how to get the field. Also, in PHP `== No` evaluates to `== "No"`. Seriously??

@worldsendless You're going to hit every landmine PHP has ever had.

Use the latest supported versions; `== No` is no longer possible in 8.0+ php.net/supported-versions.php 3v4l.org/I0GqJ

Ensure you're running with php.net/manual/en/errorfunc.co = E_ALL

`php -a` is the closest thing to a native repl, but there's others like github.com/ramsey/composer-rep or psysh.org/

Or step debugging with xdebug.org/docs/step_debug

phptutorial.net/ + phptherightway.com/

Follow

@zimzat We are running a fair-sized operation here so changing the versions and the configs isn't done easily, and because the workforce is largely transient university student developers we cannot pay licensing fees for a specialized tool like PHP Storm; the students are on and I am on , both of which are great for working in many languages

@worldsendless

PhpStorm has paid per-seat transferable business licenses.

Upgrading the version has be a minimum requirement: PHP 7.4 and earlier is no longer supported, no matter what WordPress says their minimum is.

It sounds like you're in a bind unless you treat it like a en.wikipedia.org/wiki/Gordian_

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.