The problem that the output of php under the command line is handled by sh

I wrote a cli Mini Program in php. I was ready to make a startup screen (character drawing) for him on a whim, but I encountered the problem that the output character painting was handled by sh!
as shown below

09.40.06sh !!!!?




Php
Mar.02,2021

this is caused by the use of the ``symbol to assign multiple-line strings to the $logo variable. In bash, statements wrapped in the ``symbol are executed as commands. And you will eventually output to shell, of course, you have to follow this rule.
there are three solutions:

  1. assign a value to the $logo variable without ``. Of course it's too troublesome.
  2. change the statement for printing from echo to print.
  3. when assigning a value to the $logo variable, add content from beginning to end to make it an available bash command. As follows:
  document  
`is the command executor

Menu