$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

Will this work?

$result = str_replace(' ', '', $input);

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

What is your other problem? If it is different you should open a new question.

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

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)

Hi kwiering,

thanks for giving information.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.