0
  $time1=implode(":",$timepick1);
  $time2=implode(":",$timepick2);



  Result is


  11 : 10 :00
  11 : 11 :00

Any body help me to remove white spaces
I want result 11:10:00

3
Contributors
6
Replies
34
Views
2 Years
Discussion Span
Last Post by ramsiva
0

Thanks DaveAmour its working

i used

 $timeone=preg_replace('/\s+/', '', $time1);
  $timetwo=preg_replace('/\s+/', '', $time2); this also working

and i facing one problem in my project r u help me

0

Hi DaveAmour Just now i open my new question.
it is very important to me.
please help me

0

Just an FYI: str_replace is much more efficient then preg_replace. It's like using a bulldozer vs. a shovel.
(Also, please mark as solved, thank-you)

Edited by Kyle Wiering: (note to mark as solved)

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.