1 2 3 4 5 6 7 8 9 10 |
<?php // Array $myArray = array("bird", "dog", "cat", "horse", "lizard"); // Get the 2 first elements $output = array_slice($myArray, 0, 2); // Result // This will give an array with elements : "bird", "dog" ?> |
Users of Windows environments often use the PuTTY client for their connections with Linux, it allows them to have direct access to the SSH server to perform bash command line.
Such access facilitates surely the task for network administrators, developers or even the webmasters.A command line that runs in a few seconds often avoids long working hours.
Among the best practices in developing a Drupal module, the use of templates is placed high on the list, this allows us to respect the MVC pattern (or at least a small part of it).