A very basic Model Class


/ Published in: PHP
Save to your folder(s)

This is a sample class being used for demo purposes


Copy this code and paste it in your HTML
  1. <?php
  2.  
  3. class User{
  4. protected $firstname;
  5. protected $lastname;
  6.  
  7.  
  8. public function __construct($data) {// We'll write this later
  9. }
  10. }
  11. ?>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.