This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface IProduct { | |
getName(); | |
getPrice(); | |
} | |
class Product implements IProduct { | |
private $name; | |
private $price; | |
getName() {...} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
For example when I have table: | |
Id|Val | |
1 | 1 | |
2 | 2 | |
3 | 3 | |
4 | 4 | |
I'd like to get result like this: |