Quantcast
Channel: CodeIgniter Forums - All Forums
Viewing all articles
Browse latest Browse all 14346

public function

$
0
0
Hello,

I have a quick question regarding the function of writing "public" in the beginning of function.

What is the difference between writing:


models/Mpages.php


PHP Code:
public function login() {}

and

function 
login() {} 

Viewing all articles
Browse latest Browse all 14346

Trending Articles