1
0
Fork 0
mirror of https://github.com/archtechx/laravel-tips.git synced 2025-12-12 05:14:04 +00:00
laravel-tips/content/tips/you-can-use-backticks-to-execute-a-shell-command-in-php.md
2022-12-01 12:01:29 +01:00

550 B
Raw Blame History

title tweet_id thread_slug author_username images created_at slug
You can use backticks (``) to execute a shell command in PHP 1596508354536304640 weekly-thread-2022-35 freekmurze
https://pbs.twimg.com/media/FbbpXeyWIAAR40j.jpg
2022-11-26T14:17:08+00:00 you-can-use-backticks-to-execute-a-shell-command-in-php

🐘 Can you believe I didnt know that PHP has a backtick operator?

Anything between `` will be executed like shell_exec and returned 🤯

Docs: https://www.php.net/manual/en/language.operators.execution.php