PhpTags/Array Functions

From Test foxway
Jump to: navigation, search

This page demonstrates the PhpTags extension

Bucket in the sand.svg You can play it in the namespace sandbox (editing is allowed for anonymous users there)


Source of this page:

{{Get random argument| Neo | Morpheus | Trinity | Cypher | Tank }}

Source of Template:Get random argument:

<phptag>
array_shift( $argv );
shuffle ( $argv );
$return = array_pop( $argv );
echo trim( $return );
</phptag>

Result: Cypher