PHP 8.0.0 Beta 4 available for testing

System program execution

add a note add a note

User Contributed Notes 2 notes

11 months ago
Backticks is probably going to be deprecated. It's safer to not use it.
See details why:
bishop at php dot net
11 months ago
Similar to these functions, there is also the backtick ("back-tick") execution operator:
= `ls -al`;

This operator runs the command given inside the backticks, and supports string interpolation just like double quotes:

= addcslashes(sys_get_tmp_dir(), '"');      
    echo `
ls "{$dir}"`;     
To Top