.PHP is not a standard translatable format and it is not fully supported. Only text variables and arrays with specifically defined keys are imported for translation.
Some .PHP files can be imported as HTML files by changing the file type to .HTML, or as .TXT files using the translatable text option with regexp.
Imports HTML tags contained in the file. Tags can then be used with .HTML file import settings.
Apply regular expressions to convert specified text to tags.