In php 7 instead of:
public function register($name, $surname, $username, $password, $email)
{
...
use:
public function register($name = null, $surname = null, $username = null, $password = null, $email = null)
{
...
More Related Contents:
- How to get static data member from php object instance? [closed]
- What’s the name of this in PHP? [duplicate]
- How should a model be structured in MVC? [closed]
- How can I implement an Access Control List in my Web MVC application?
- Creating the Singleton design pattern in PHP5
- Is it possible to define a class property value dynamically in PHP?
- simple explanation PHP OOP vs Procedural?
- Can I include code into a PHP class?
- PHP class instantiation. To use or not to use the parentheses? [closed]
- How can I get the classname from a static call in an extended PHP class?
- Why is overriding method parameters a violation of strict standards in PHP?
- Are objects in PHP assigned by value or reference?
- What is the difference between self::$bar and static::$bar in PHP?
- Fatal error: Using $this when not in object context
- Returning a value in constructor function of a class
- Design Patterns: How to create database object/connection only when needed?
- How to access Magento user’s session from outside Magento?
- Interface or an Abstract Class: which one to use?
- What does the syntax ‘%s’ and ‘%d’ mean as shorthand for calling a variable?
- How do I access a PHP object attribute having a dollar sign?
- How to Check for a Specific Type of Object in PHP
- PHP dynamic name for object property
- Undefined index: file
- How do I access static member of a class?
- Unresolvable dependency resolving [Parameter #0 [ $name ]]
- dynamic class names in php
- Call parent constructor before child constructor in PHP
- Is Multiple Inheritance allowed at class level in PHP?
- Method Chains PHP OOP
- PHP – Implement logging mechanism to file in several classes