Can a trait extend a class php?
Answer / Avinash Kumar Sinha
No, in PHP traits are not able to extend classes. Traits are used for code reuse with the composition instead of inheritance.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is trim function in php?
Is set in php?
What is difference between print_r and echo in php?
How can we get the properties (size, type, width, height) of an image using PHP image functions?
Tell me what are sql injections, how do you prevent them and what are the best practices?
Can php run without apache?
What software is required for php?
How to remove duplicate values from php array?
How are cookies created?
Is false empty php?
How can you create a session in php?
What is a php object?