thesnarkie Posted September 26, 2009 Report Share Posted September 26, 2009 Piemēram, $money = "12365,12"; echo $money; //outputs būs 12365,12 Es gribētu aizstāt ar: echo kautkadafunkcija($money); //outputu gribētu XXXXX,XX vai citādi šifrētu. Jautājums vai ir tāda funkcija, kas paveiktu ko gribu? Quote Link to comment Share on other sites More sharing options...
Kaklz Posted September 26, 2009 Report Share Posted September 26, 2009 echo preg_replace('/[0-9]/', 'X', $money); ? Quote Link to comment Share on other sites More sharing options...
tas_pats Posted September 26, 2009 Report Share Posted September 26, 2009 number_format Quote Link to comment Share on other sites More sharing options...
marcis Posted September 26, 2009 Report Share Posted September 26, 2009 number_format() nekādā ziņā neko nešifrē/nerepleiso. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.