Module:ns.wrap.php.lists

From NoxBot the modular PHP IRC bot

Jump to: navigation, search
Module: ns.wrap.php.lists
DeveloperMark Sanders
Namespacewrap.php
Authgroupwrap_php
Commandscount

explode

fill

implode

in_array

natcasesort

natsort

range

reverse

rsort

search

serialize

shuffle

sort

str_split

unique

unserialize
Copyright2005-2009 Mark Sanders
LicenseGNU GPLv3

Description

This module is a generated module based on various functions in PHP.

The commands in here will act more or less identical to the functions in PHP although their argument handling is mostly checked before being passed to the actual function because of the way argument handling works.

Also the return values will always be a string and the incoming arguments the same. There is some magic performed around the return values to make them agreeable to the NoxScript way of dealing with them.

Errors are not captured or returned to the user although they may display in the console.

Some PHP functions may do things you would not want in a bot.

Use these commands at your own risk.

Commands

count

This command is a wrapper for the PHP function count.


explode

This command is a wrapper for the PHP function explode.


fill

This command is a wrapper for the PHP function array_fill.


implode

This command is a wrapper for the PHP function implode.


in_array

This command is a wrapper for the PHP function in_array.


natcasesort

This command is a wrapper for the PHP function natcasesort.


natsort

This command is a wrapper for the PHP function natsort.


range

This command is a wrapper for the PHP function range.


reverse

This command is a wrapper for the PHP function array_reverse.


rsort

This command is a wrapper for the PHP function rsort.

This command has the arguments reversed in comparison with the PHP function.

This is done so that the last argument is the list (array) for the command.


search

This command is a wrapper for the PHP function array_search.


serialize

This command is a wrapper for the PHP function serialize.


shuffle

This command is a wrapper for the PHP function shuffle.


sort

This command is a wrapper for the PHP function sort.

This command has the arguments reversed in comparison with the PHP function.

This is done so that the last argument is the list (array) for the command.


str_split

This command is a wrapper for the PHP function str_split.


unique

This command is a wrapper for the PHP function array_unique.


unserialize

This command is a wrapper for the PHP function unserialize.


Copyright and License

Copyright (C) 2005-2009 Mark Sanders

License: GNU GPLv3

User comments

Add a comment

Below you can find comments and annotations added by users.

Comments

No comments added yet. Be the first to add a new comment. Be sure that you understand the guidelines of commenting.

Add a comment

User comments can include false information.

We are not responsble for the content posted by users.

Comments

Useful links for NoxBot users

Documentation home

Live Support

Credits

Licensing

Known bugs

Requested features

Browse through the functionality of NoxBot by

Modules

Commands

Validators

Namespaces

AuthGroups

Developers

Useful links for NoxBot Developers and module writers

Api reference

SVN repository

Trac timeline

Roadmap

Active tickets

Create ticket

Personal tools