Intval() and the binary integer in a string
0b11101 is the binary integer in #PHP code. When the same value is in a string, dynamically acquired if you will, it cannot be cast to integer directly.
This is where intval() saves the day.
#phptip#phptrick
Here is a classic situation, where injecting an array of arrays leads to the infamous list of 'Array, Array, Array...'
What #PHP tool do you use to guard against this warning?
is_array() is not sufficient, and the type is already there.
There is nothing native available.
#PHP and #rustdev are often teaming to deliver features and assess hard problem.
Here is a factual inventory of every current bridge between them: Zend extensions, FFI, WebAssembly runtimes, PHP-to-Rust conversion, Rust PHP engines, PHP Rust compiler, code generators, etc. 👇