Type casting in PHP

PHP does not support explicit type definition in variable declaration. For example, you CANNOT declare a variable as follows:

int $count = 10;

In PHP, a variable's type is determined by the context in which the variable is used.

What is Moodle

A Learning Management System (LMS) is a software application which permits administration, documentation, tracking, development, reporting, of online e-learning content. LMS needs to provide enormous flexibility and fine-grained level of control for administrator, trainers, course developers, and students alike. The needs for each course and each institute are different and LMS much fulfill all their requirements. The best-known LMS are blackboard (formerly Web-CT) and Moodle. Blackboard is a licensed software while Moodle is open source.

PHP usort explained

The usort function sorts an array by values where the values are sorted by a user-defined function. usort has the following syntax

bool usort ( array &$array , callback $cmp_function )

The comparison function takes two arguments and it must return integer values, either 0, positive integer, or negative integer.

Batch renaming files

Batch renaming files in Linux requires writing or using a shell script. If you don't have the time to write or find a shell script to batch rename your files, simply install and use the gprename utility. It is a graphical utility which is suitable for most batch renaming tasks.

To install on Ubuntu

$ sudo apt-get install gprename

To use, simply type gprename in the terminal or Ubuntu Dashboard.

(adsbygoogle = window.adsbygoogle || []).push({});