Encapsulation is referred to one of the following two notions. 1) Data hiding: A language feature to restrict access to members of an object. For example, private and protected members in C++. 2) Bundling of data and methods together: Data and methods that operate on that data are bundled together.
Do u know about planning or implementing OOP methdology access to array methods in PHP in future. Like show code later:
$a = new Array(); $a->append("hello"); $a->shift(); $p = $a->pop(); $b = Array::fill(fill_char="*", count=20); $b->pop();