tomfmason Posted October 20, 2006 Share Posted October 20, 2006 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 More sharing options...
Barand Posted October 20, 2006 Share Posted October 20, 2006 You don't need it. Type converion is automatic[code]<?php$x = 'Quantity';$y = 1;echo $x.$y; // --> Quantity1 // orecho "$x$y"; // --> Quantity1?>[/code] Link to comment https://forums.phpfreaks.com/topic/24573-php-equivalent-to-asps-cstr/#findComment-112012 Share on other sites More sharing options...
tomfmason Posted October 21, 2006 Author Share Posted October 21, 2006 Thanks Barand. I really appreciate it.Thanks,Tom Link to comment https://forums.phpfreaks.com/topic/24573-php-equivalent-to-asps-cstr/#findComment-112146 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.