Settings

Theme

"use php"

twitter.com

3 points by sawirricardo 2 months ago · 1 comment

Reader

al_borland 2 months ago

PHP is often mixed into files that contain other languages. Even in the example, the PHP is in a JavaScript file. How does “use php” alone tell the system what is PHP and what might be another language.

It would be nice to be able to use PHP in a file that has the file extension for the primary code it contains, like HTML, but it still seems like there needs to be a way to define where one language ends and other begins.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection