PHP

De JarfilWiki

Contenido

Related

PHP Debugging

PHP 5.3

PHP Frameworks

Editors

20061231-122300

  • PHP Designer 2007 - Professional
    41€
  • PHP Edit
    89€
  • Xored::WebStudio (Eclipse) TruStudio
    0€

Tools

Snippets

Call method by variable:

<?php
class c {
    function a() {
        echo "a\n";
    }
}
 
$o = new c();
$p = 'a';
$o->$p();
?>

Call method by argv:

<?php
echo 'argc: '.$_SERVER['argc']."\n";
print_r($_SERVER['argv']);
 
$c = new c;
 
$do=$argv[1];
$c->$do("tst");
 
class c {
    function a($t) {
        echo $t;
    }
}
?>
Herramientas personales