Log In

  Sign In >
 
 

Other tips & tutorials Blogs

Comparing PHP to ASP - Week 4 - Looping

2 Jun 2010
tips-tutorials

Looping is an important part of any development language. For this tutorial we will look at some ...

 
 

Comparing PHP to ASP - Week 2 - String Functions

18 May 2010
tips-tutorials

Welcome to the second part of our 5 part tutorial where we will compare PHP with Classic ASP

 
 

Comparing PHP to ASP - Week 1 - The Basics

10 May 2010
tips-tutorials

Welcome to the first part of our 5 part tutorial where we will compare PHP with Classic ASP

 
 

Week 5 - JQuery and AJAX

26 Mar 2010
tips-tutorials

This week I will show you probably the main benefit of learning JQuery. AJAX (Asynchronous ...

 
 

Week 4 - Changing CSS attributes

19 Mar 2010
tips-tutorials

This week I will show you how to add CSS styles to elements on a page of your website.

 
 

Categories

Archive

2010
2 3 4 5 6 7 8 9 10 11 12

 

 

Comparing PHP to ASP - Week 3 - Number Functions

24 May 2010 - tips-tutorials

Comparing PHP to ASP - Week 3 - Number Functions

Welcome to the third part of our 5 part tutorial where we will compare PHP with Classic ASP.

The objective of these tutorials is to show you how to do some basic programming in PHP and compare it to how you would do it in Classic ASP using VB Script.

This five part tutorial will be split into five sections:

Random number Between 1 and 10 in PHP

Random number Between 1 and 10 in Classic ASP

Both of these examples would output a random number between 1 and 10.

Rounding a Number Down in PHP

For each of these examples, we will round down the value 5.7

Rounding a Number Down in Classic ASP

The integer 5 would be returned to the browser.

Rounding a Number Up in PHP

For each of these examples we will round the number 63.454564 up to 2 decimal places.

Rounding a Number Up in Classic ASP

Both of these examples would output the value 63.45

Checking if a value is an Integer in PHP

In PHP, we use the is_numeric() function. This returns TRUE if the value passed in IS an integer and FALSE if it IS NOT.

Checking if a value is an Integer in Classic ASP

I hope you have enjoyed part 3 of our 5 part tutorial. Look out for part 4 on looping coming soon.

Simon Lait
Website Developer, Candeo Media

SHARE THIS

Your Comments

There are no comments for this post yet.

Comment on this Post

 
 
 
verification image

Please enter the verification code that appears in the box above into the box below to proceed:

 
 
 
 
 
 
Web Design & Development, Graphic Design, Email Newsletter Marketing, Search Engine Optimisation, Web Application Development, Social Networking and more...
 
 
Close

Sign up to our newsletter