phdphd Posted April 20, 2018 Share Posted April 20, 2018 Hi All, I am not sure this is the right section to post to, sorry... I would like to know if there is a tool that is able to parse a php file and to extract the echoed strings from it. Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/307178-does-a-string-extracting-tool-exist/ Share on other sites More sharing options...
Barand Posted April 20, 2018 Share Posted April 20, 2018 It would be simple exercise to take a php file like <?php echo "Message 1<br>"; $msg = "Hello"; echo "Message 2<br>"; $msg .= " World!"; echo $msg; ?> and, treating it as a text file, use string search functions to output Message 1<br> Message 2<br> $msg The difficult bit, if required, would be knowing that $msg now contains "Hello World". Quote Link to comment https://forums.phpfreaks.com/topic/307178-does-a-string-extracting-tool-exist/#findComment-1557975 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.