lundi 5 août 2019

Is this php object orientated approach valid and efficient or should i just stick to procedual?

name = $name; $this -> submit = $submit; } public function validate(){ if ($_SERVER['REQUEST_METHOD'] == 'GET'){ $name = $_GET['name']; echo $name.' '; echo 'cool name noob'; } } } $a1 = new begintest(); $a1 -> validate(); ?>




Aucun commentaire:

Enregistrer un commentaire