Guest - Rafael - Posted October 2, 2003 Report Share Posted October 2, 2003 alguém sabe se exite uma forma ou função que copare o converta um caracter para o seu respctivo codigo ASCII?? Quote Link to comment Share on other sites More sharing options...
0 Eddie_666 Posted October 3, 2003 Report Share Posted October 3, 2003 Pra que tu quer? Quote Link to comment Share on other sites More sharing options...
0 tfolima Posted October 4, 2003 Report Share Posted October 4, 2003 Use ord($str)! ;) Quote Link to comment Share on other sites More sharing options...
0 rockbilly Posted October 4, 2003 Report Share Posted October 4, 2003 $letra = ord("a"); echo "Resultado é : "."<b>".$letra."</b>"; Quote Link to comment Share on other sites More sharing options...
0 KeitaroSan Posted October 5, 2003 Report Share Posted October 5, 2003 Si liga aew cara... ord($char) retorna o codigo ascii do char... e chr($cod) retorna o char relacionado ao codigo ascii :D Quote Link to comment Share on other sites More sharing options...
Question
Guest - Rafael -
alguém sabe se exite uma forma ou função que copare o converta um caracter para o seu respctivo codigo ASCII??
Link to comment
Share on other sites
4 answers to this question
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.