Jump to content

php equivalent to asp's CStr


tomfmason

Recommended Posts

The subject says it all. I have been searching for hours and can't find an equivalent for what I am trying to do.

Here is the asp

[code]
CASE "Other Purchases"
  NB = 0
  For i = 1 to iCount     
    Quantity = Request("Quantity" & CStr(i))
    If IsNumeric(Quantity) Then
      ARYshopping(cartItemQuantity,i) = abs(CLng(Quantity))
[/code]

The CStr function converts this variable to a subtype string.

I am at a loss on this one.

Any suggestion would be great.

Thanks,
Tom
Link to comment
https://forums.phpfreaks.com/topic/24573-php-equivalent-to-asps-cstr/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.