Jump to content
php.lv forumi

replace


FT3

Recommended Posts

Sveiki ir problema neka nevaru atrisinat ..

 

iekš input ir šadi value

value="0.15 Ls"
value="0.30 Ls"
value="0.45 Ls"
value="0.60 Ls"
value="0.75 Ls"
value="0.95 Ls"
value="1.25 Ls"
value="1.50 Ls"
value="1.75 Ls"
value="2.00 Ls"

 

ka izdarit ta lai pie $_POST izvada 15 , 30 , 125 u. c.

 

Iepriekš paldies :)

Link to comment
Share on other sites

Kāpēc tur ir tādi values? Kas vainas, piemēram, 0.15 Ls pierakstīt kā 15?

 

Ja tomēr gribi ļoti čakarēties... extracto ar regexu ārā digiti/punks/digiti (vai tā kā Dooling minēja).

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...