Any idea where one could get PHP classes?
Simple!!!!
There are no PHP Classes created, but you only get a list of built-in functions already available (thousandsssss of them)
You only have to create PHP Classes from scratch. Just read the whole PHP MANUAL.
sample php class
<?php
class test
{
function display_text()
{
echo "testing";
}
}
$test = new test;
$test->display_text();
?>
result: testing
naana ka idea sa classes
dili na:
Wala sad koy sure. hehe.Code:$test = new test();
The samples are already available in the documentation. It's pretty easy and handy and mostly general and not strict.
Test it in your own h ttp://localhost
pwede ra walay parenthesis.
here is another sample
class test {
function foo()
{ echo 'fooooooooooo'; }
}
test::foo(); //displays fooooooooooo
Basin mao ni iyang pasabot ---> Welcome to the PHP Classes Repository - PHP Classes
try lang pangita diha bro!
Similar Threads |
|