slang-users mailing list

[2007 Date Index] [2007 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

[slang-users] how to get a character of a string?


Hi,

how can I get the first character of a string? Think of UTF-8!

if (substr("hello", 1, 1) == 'h')

Bye, Jörg.
-- 
Optimisten haben gar keine Ahnung von den freudigen Überraschungen, die
Pessimisten erleben.
	    	    				(Peter Bramm)

_______________________________________________
To unsubscribe, visit http://jedsoft.org/slang/mailinglists.html


[2007 date index] [2007 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]