bhakti_thakkar
11-13-2007, 05:45 AM
hi all,
i am having a string [eg: $str="The meeting is scheduled on ::date:: and at ::time::. The date and time may change to ::date:: and ::time:: or ::date:: and ::time:: ."].
time will have an array of hrours and minutes. i have an array of date
dispdate[] Array :
Array ( [0] => 15-11-2007 [1] => 15-11-2007 [2] => 20-11-2007 )
hours[] Array:
Array ( [0] => 11 [1] => 11 [2] => 11 )
minutes[] Array:
Array ( [0] => 30 [1] => 30 [2] => 30)
what i want is for first occurance of ::date:: shuld be replace with [0] element of dispdate[] array and the first occurance of time should be replaced with concatination of [0] element of hours[] and [0] element of minutes[] and second occurance of ::date:: should be replace with [1] element of dispdate[] and second occurance of ::time:: with concate of [1] element of hours[] and [1] element of minutes[] and so on....
i am tring it from past one day but just going nuts ... Please help me on this :eek:
how will i do it??
thanks....
i am having a string [eg: $str="The meeting is scheduled on ::date:: and at ::time::. The date and time may change to ::date:: and ::time:: or ::date:: and ::time:: ."].
time will have an array of hrours and minutes. i have an array of date
dispdate[] Array :
Array ( [0] => 15-11-2007 [1] => 15-11-2007 [2] => 20-11-2007 )
hours[] Array:
Array ( [0] => 11 [1] => 11 [2] => 11 )
minutes[] Array:
Array ( [0] => 30 [1] => 30 [2] => 30)
what i want is for first occurance of ::date:: shuld be replace with [0] element of dispdate[] array and the first occurance of time should be replaced with concatination of [0] element of hours[] and [0] element of minutes[] and second occurance of ::date:: should be replace with [1] element of dispdate[] and second occurance of ::time:: with concate of [1] element of hours[] and [1] element of minutes[] and so on....
i am tring it from past one day but just going nuts ... Please help me on this :eek:
how will i do it??
thanks....