PHPBuilder - Switching From VB to PHP Page 4



RSS Twitter
Articles Tricks And Hacks

Switching From VB to PHP - Page 4

by: Peter
|
July 30, 2000

Functions are global to other functions. This approach suits people who think in VB. (People who think "of" VB are likely to be Australians thinking of a very popular and tasty beer.)
There is one other thing you might note in my examples. PHP lets you write:

<?php

$x
="blue";

print(
"The ocean is $x\n");

/*
    That is an unnatural act in VB. We can 
    read your PHP code easier if you write:
*/

$x="blue";
print(
"The ocean is " $x "\n");

?>
If you use the . . approach, Homesite will pick up and highlight $x. Homesite is an extremely popular editor for people working on ASP/VB sites under NT so is probably what they will use when they start editing PHP.

« Previous Page
1
|
2
|
3
|
4

Comment and Contribute

Your comment has been submitted and is pending approval.

Author:
Peter

Comment:



Comment:

(Maximum characters: 1200). You have characters left.