ridzuan Posted September 3, 2013 Share Posted September 3, 2013 (edited) 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. Edited September 3, 2013 by ridzuan Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
litebearer Posted September 3, 2013 Share Posted September 3, 2013 Consider using with cyberRobot's answer Quote Link to comment 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.