Written by James McDonald

October 3, 2012

I have been trying to learn CakePHP which is a Model View Controller PHP development framework.

But in the process I’m having to learn PHP and have discovered some interesting stuff.

My first ow wow that’s interesting moment was that class and function names are case-insensitive.

So when it comes to these things camelCase isn’t really necessary.

You can call a function:

myfunction();

myFunction();

MYFUNCTION();

And it works.

However variable names are case sensitive so:

$myvariable;

$MyVariable;

$MYVariable;

are all different.

These small things are good to know when you start with PHP.

 

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

The reCAPTCHA verification period has expired. Please reload the page.

You May Also Like…

Squarespace Image Export

To gain continued access to your Squarespace website images after cancelling your subscription you have several...

MySQL 8.x GRANT ALL STATEMENT

-- CREATE CREATE USER 'tgnrestoreuser'@'localhost' IDENTIFIED BY 'AppleSauceLoveBird2024'; GRANT ALL PRIVILEGES ON...

Exetel Opt-Out of CGNAT

If your port forwards and inbound and/or outbound site-to-site VPN's have failed when switching to Exetel due to their...