jchang Posted May 27, 2009 Share Posted May 27, 2009 Hi, I would like to find out if there is a way for php to replace certain string text that mysql outputs from a query to some other human readable format. when I run a query, it outputs ef:assignedTask but I would like to simply change it to "Assigned" with PHP. Can someone point me to a right direction? Thanks in advance. Best, jchang Link to comment https://forums.phpfreaks.com/topic/159909-php-to-change-output-string-from-mysql-to-something-else/ Share on other sites More sharing options...
Axeia Posted May 27, 2009 Share Posted May 27, 2009 *points to str_replace()* If that isn't enough, there's are plenty other string functions. Link to comment https://forums.phpfreaks.com/topic/159909-php-to-change-output-string-from-mysql-to-something-else/#findComment-843431 Share on other sites More sharing options...
jchang Posted May 27, 2009 Author Share Posted May 27, 2009 Thank you Axeia. Link to comment https://forums.phpfreaks.com/topic/159909-php-to-change-output-string-from-mysql-to-something-else/#findComment-843543 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.