How is traits used in php?
Answer / Amrat Singh
Traits are a mechanism for code reuse in PHP. They allow you to reuse functions and properties from one class into another, even if they don't share a common ancestor. Traits are defined using the trait keyword.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is php dependency injection?
Explain the types of string comparision function in PHP
How be the result set of mysql handled in php?
What is php session and how it works?
What is the use of addslashes in php?
Explain how you can update memcached when you make changes to php?
What is the exact Diff. between include_once() and require_once() in PHP?
What is the difference between characters 34 and x34?
What is php pathinfo?
What is the function mysql_pconnect() useful for?
Why php is also called as scripting language?
How to convert a string to uppercase in php?