IT Community - Software Programming, Web Development and Technical Support

How to get ASCII Value of a first character in a string in php?

This is a discussion on How to get ASCII Value of a first character in a string in php? within the PHP Programming forums, part of the Web Development category; How to get ASCII Value of a first character in a string in php?...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > PHP Programming

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 01-06-2008, 11:46 PM
$enthil $enthil is offline
D-Web Sr.Programmer
 
Join Date: Apr 2007
Posts: 162
$enthil is on a distinguished road
Smile How to get ASCII Value of a first character in a string in php?

How to get ASCII Value of a first character in a string in php?
__________________
$enthil
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 01-06-2008, 11:48 PM
it.wily it.wily is offline
D-Web Programmer
 
Join Date: Jul 2007
Posts: 89
it.wily is on a distinguished road
Cool Re: How to get ASCII Value of a first character in a string in php?

you can use ord() function in php. It returns the ASCII value as an integer
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
openSTA and end of file character cindrella Software Testing 0 02-29-2008 11:12 AM
Substring of a string from a particular character $enthil PHP Programming 4 01-02-2008 02:39 AM
What is diffrenece between string.compare and string.compareordinal shaalini ASP and ASP.NET Programming 3 12-28-2007 10:46 PM
Character Embedding geoblow Flash Actionscript Programming 0 09-18-2007 01:11 AM
NULL character within a string vigneshgets C# Programming 1 08-01-2007 05:07 AM


All times are GMT -7. The time now is 07:24 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0