Php is still used and developed. Perl is still used and actively developed (both 5, which is the stable version with backports occasionally, and 6 which is a complete rewrite, but still very much in development).
You can get a job as a php coder. Plenty of companies use it.
People like to give their first languages love, and lots of people learned to program in something like ruby or python, so they keep programming in them. But that doesn't mean that older languages or legacy code go away.
That doesn't mean you should stop learning. Learning more than one language or framework can help you become a better programmer. But don't let people tell you php is over.
There are languages that are pretty much gone, except for legacy code. Practically nobody learns pascal anymore, from what I can tell.
Php, however has held up surprisingly well, compared to a lot of languages/frameworks. You might try picking up another language, like java script.