如何将日期字符串(2012年8月8日)转换为数字格式(08 08 2012)?

hi how to convert the string format date to number format ?

$bd=$row[dateofb];
o/p:08 august 2012 

But how to convert the above sting to 08/08/1212

Try this. The date function in conjunction with strtotime :)

echo date('d/m/Y', strtotime($bd));