"Seemingly challenging" how the shell gets the value of return in PHP
Title PHP This file is to return an array
PHP Code
' 1 ', ' b ' = ' 2 ', ' c ' = ' public ', ' d ' = ' ', ' e ' = = ', '; >
In the shell how to receive this array ah or there is no way
------Solution--------------------
PHP Code
[User:root time:07:23:08 path:/home/liangdong/php]$ php a.php Array ([a] + 1 [b] = 2 [c] = Public [d] = [E] = [User:root time:07:23:10 path:/home/liangdong/php]$ Cat a.php
[User:root time:07:23:12 path:/home/liangdong/php]$ Cat b.php
' 1 ', ' b ' = ' 2 ', ' c ' = ' public ', ' d ' = ' ', ' e ' = = ', '; >
------Solution--------------------
The shell is not ripe, estimate your needs I will use later, studied one,
PHP Code
#!/bin/basheval ' cat php_data.txt |grep ' = ' |tr-d ', >\ ' "|xargs-i {} echo {}\;|tr" \ n "" "' Echo ${a}echo ${b}echo ${c}echo ${d}
------Solution--------------------
Cross-language data exchange requires a data structure that can be recognized by both parties,
Otherwise it doesn't make sense.
If you have a sample PHP code that is pre-compiled by Zend, or is being disturbed by a shield (you cannot say that he is not a PHP file)