Functies Current version 3.2 Download link
ID Naam parameters parameter info werking
1 randomInterval( ) min,max Both must be numbers Return a random number between and including the given min and max
If parameters are not numbers, returns 0
2 collide( ) id1,id2 Both must be strings Checks if the objects collide,
properties of object must be ginven in de elemement like: style=""
3 trim( ) str str must be string Removes any white space to the right and left of the string
4 ltrim( ) str str must be string Removes any white space to the left of the string
5 rtrim( ) str str must be string Removes any white space to the right of the string
6 truncate( ) str,len str must be sting, len must be number Truncate a string to a given length
7 onlyLetters( ) str str must be string Return a string only containing the letters a to z
8 onlyLettersNums( ) str str must be string Return a string only containing the letters a to z and numbers
9 contains( ) a,item a must be object Does a given array contain a item
10 sumAll( ) any Optional amount of numbers or object Returns a sum of the given numbers
11 isString( ) obj can be any object Checks if object is a string
12 isEmail( ) obj can be any object checks if object is email
returns true if true
13 isUrl( ) obj can be any object checks if object is URL
returns true if true
14 setTitle( ) str str must be string sets the title of the page to the given string
15 print_r( ) array,val array can be anything, val must be true the javascript version of print_r(PHP)
16 scrambleArray( ) array array must be array It returns a array that has the given array in a random order
17 random() --- --- returns a random number between a random interval
18 sleep() milisec milisec needs to be a number lets the page wait for an given miliseconds
19 header() url url needs to be an url replaces the current url with the given one
20 getRandomColor( ) -- -- Return a random generated color
21 $_GET() q,s Q is a string containing the get name, s is empty The $_GET[] equivilent of javascript
22 .remove() -- -- This destoys the element given,
like: document.getElementById("my-element").remove()
or
document.getElementsByClassName("my-elements").remove();
23 .randomElement() -- -- this returns a random element from a array. use like:
var myRandomElement = myArray.randomElement()
24 setCookie() cname cvalue exdays cname is cookie name, cvalue is value of the cookie, exdays is the amount of days the cookie may be active It sets a cookie
25 getCookie() cname cname is the cookie name returns the value of the cookie with the given name