ridzuan Posted September 3, 2013 Share Posted September 3, 2013 Hi, Current sql output:- A with 20 length/set | B with 5 length/set HelloWorld i want the output like below based on column length Hello<empty space 15char>World Thank you. Link to comment https://forums.phpfreaks.com/topic/281804-view-mysql-table/ Share on other sites More sharing options...
cyberRobot Posted September 3, 2013 Share Posted September 3, 2013 You could try using str_repeat(): http://php.net/manual/en/function.str-repeat.php Link to comment https://forums.phpfreaks.com/topic/281804-view-mysql-table/#findComment-1447952 Share on other sites More sharing options...
litebearer Posted September 3, 2013 Share Posted September 3, 2013 Consider using with cyberRobot's answer Link to comment https://forums.phpfreaks.com/topic/281804-view-mysql-table/#findComment-1447961 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.