|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Article Discussion: Mimicking PHP's String Formatting Functions
ASP does not come with many string formatting options. We can find the length, make a string upper/lower case, and do some trimming and replacing, but not too much else. Often appearing in forums is the question "What's the ASP equivalent to PHP's [something] function?" This article will highlight a few formatting functions mimicking PHP, and maybe spur your creative mind on to creating more of your own.
Read the full article here: Mimicking PHP's String Formatting Functions |
|
#2
|
|||
|
|||
|
Nice, with a little error!
Cool stuff!
But there are some little mistakes: In the function stripTags the last line: stripHTMLTags = strToStrip must be stripTags = strToStrip isReallyNumeric I could not find this function. So I changed it to isTrulyNumeric. Cya Bjorn ![]() |
|
#3
|
|||
|
|||
|
Microsoft Monkeys
Hey Justin,
Thanks for a very good article. When are those clueless monkeys at Microsoft labs going to enhance ASP so it can do what PHP can do? Would love to sit in on one of their design meetings and try to understand how they can reconcile PHP being so very much more powerful and elegant than ASP. Tragic that we have to artificially code functions to perform basic tasks that PHP can easily and inherently handle... I've been writing PHP for 6 years and, due to corporate work, have been forced to support ASP applications and gawd is ASP clumsy. |
![]() |
| Viewing: ASP Free Forums > Other > Development Articles > Article Discussion: Mimicking PHP's String Formatting Functions |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|