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

15 lines
No EOL
550 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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