I would like to convert a string into floating numbers. For example
152.15 x 12.34 x 11mm
into
152.15, 12.34 and 11
and store in an array such that $dim[0]=152.15, $dim[1]=12.34, $dim[2]=11.
I would also need to handle things like
152.15x12.34x11 mm
152.15mmx12.34mm x 11mm
Thank you.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…