removing echo statements from PHP code