Re: VB to PHP
| From: | Faisal Nasim | Date: | Mon, 26 Jun 2000 22:42:51 +0000 |
| Subject: | Re: VB to PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-3231@lists.php.net to get a copy of this message | ||
| Hello i have a real problem and i need help
I thought all problems were real ;)
|
| I wonder if this VB string can be replaces whit PHP, and if it can can
anyone send me how to??
|
| sT = Trim(sProductId)
| sU = ""
| For iI = 1 To Len(sT)
| iC = Asc(Mid$(sT, iI, 1))
| sU = sU + Chr$(iC Xor &HFF)
| Next iI
| VNnilRec.ProdId = sU
|
$PRODUCTID = "Something";
$str = trim ( $PRODUCTID );
for ( $i = 0 ; $i < strlen ( $str ) ; $i++ )
$sU .= chr ( ord ( substr ( $str , $i , 1 ) ) ^ 255 );
print $sU;
Enjoy!
Faisal