PHP 8.2.0 Alpha 2 available for testing

Ausführung von Systemprogrammen

add a note add a note

User Contributed Notes 2 notes

2 years ago
Backticks is probably going to be deprecated. It's safer to not use it.
See details why:
bishop at php dot net
2 years 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