#native_company# #native_desc#
#native_cta#

Switching From VB to PHP Page 4

By Peter
on 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 $xn");

/*

    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.

1
|
2
|
3
|
4