RobLog

Web Design in the World of .NET (C# and VB.NET, XML, and Javascript). I learned how to program from TheDailyWTF.com!
posts - 140, comments - 127, trackbacks - 5

My Links

News

Main Site Cert Corner Goals About Me

Article Categories

Archives

Post Categories

Image Galleries

.NET

Personal

WOW


Learning PHP

I am working on a new project for a company.  They use Linux and I was thinking it may be the perfect opportunity to use Mono and C#.  Right now they have tasked me with using PHP, which is a new language to me.

From what I have seen though, it is quite a bit like C# and Javascript.  It is very simple to do some of the easy stuff and it is even an advanced enough language to have classes and inheritance.
   A couple of things I have notice that are different in the syntax:

  • All variables are named with “$” in front of them. ex. $vegetable
  • Concatenation is accomplished with “.“.  That means something else has to serve as the attribute link.
  • The link for attributes, methods, and properties is “->“.  ex. $vegetable->
  • Classes refer to themselves with the keyword variable “$this” inside of the class.
  • Most keywords (reserved words) use “$_“ in front of them.  ex. “$_GET“ or “$_POST“

It is a language to appreciate.  I believe it was made as an attempt to counter ASP and Microsoft by the advocates of open source, and they have quite a product now.  In fact, as a caveat to Microsoft, there is a new tool by JCX.Software which is quite cheap at $99 and found here: VS.PHP Studio

Here is a screen shot:
Image of VS.PHP
There is a 30 Day trial to decide if you like it or not.

posted on Thursday, October 14, 2004 10:39 AM

Feedback

No comments posted yet.

Post Comment

Title  
Name  
Url
Comment   
Protected by Clearscreen.SharpHIPEnter the code you see: