FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » String Question
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: String Question [message #172797 is a reply to message #172796] Wed, 02 March 2011 20:59 Go to previous messageGo to previous message
Denis McMahon is currently offline  Denis McMahon
Messages: 634
Registered: September 2010
Karma:
Senior Member
On 02/03/11 20:38, Patrick wrote:

> yet when I do a strlen $errval is 64 and $pglerr is 65.

Have a more detailed look at the string contents, maybe looking at eg
the ascii codes for each char in the string. function strbits below
might help:

<?php

function strbits($str) {
$i = strlen($str);
$a = array();
while (--$i) $a[$i] = ord(substr($str,$i,1));
return $a;
}

?>

Rgds

Denis McMahon
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: genuine adsence accounts Big offer
Next Topic: fgetcsv -- No error reporting?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 23 20:04:12 GMT 2024

Total time taken to generate the page: 0.06667 seconds