![]() |
PHP question, I hateeeeeeeee. Easy to do i'm sure...
Hi there! e.g.
$title="i am the best" i want the output field to be "i-am-the-best" doing a replace of spaces with dashes. Tell me gods how to do this :D |
|
^what he said....easy to do
|
Copy paste that
PHP Code:
|
^ recommended solution :thumbsup
|
yup that one is even better....but if he's putting in the string himself he won't be using double spaces etc......and then the first solution is faster I think...but if he doesn't know what the string will look like..the second solution is superior :)
|
All times are GMT -7. The time now is 04:32 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc