This chapter shows you the main functions of PHP-Code Elements which can be used. The Introduction in PHP-Code will help you to integrate all PHP functions for your questionnaire.
At the very end of this page will be a helpful information how the documentation of the PHP-functions can be read: Function in Detail
See also filter questions und filters.
* value() – Use answer of participant, e.g. for filter
Task depending oFb will give support for several functions for random sampling. Especially between random the sampling with(Random number: random) and the drawing without put back (Urn-drawing: urn) have to be differentiated. Urn-drawing allows to draw multiple correlated Items (e.g. combinative variety combination).
See also Randomisierung.
See also Variablen in PHP and in question and Items.
PHP provides a number of helpful functions, which can easily be used during questionnaire PHP Manual documented.
nl2br, str_repeat, str_shuffle, str_word_count, strip_tags, stripos, stristr, strpos, strrev, strripos, strrpos, strstr, substr_replace, wordwrap
imagecolorallocate – Use color for graphic
imagecreatetruecolor – New picture in real color (16 Mio.) sings
imagefilledellipse – Draw filled ellipse or circle imagefilledpolygon – Draw filled polygon imagefilledrectangle – Draw filled rectangle imagefilltoborder – Fill picture with color until line
imagepolygon – Draw polygon imagerectangle – Draw rectangle imagesetbrush – Set brush
*imagesetthickness – Set line width
* Continuing allowed functions: image_type_to_extension, image_type_to_mime_type, imagealphablending, imageantialias, imagearc, imagechar, imagecharup, imagecolorallocatealpha, imagecolorat, imagecolorclosest, imagecolorclosestalpha, imagecolorclosesthwb, imagecolordeallocate, imagecolorexact, imagecolorresolve, imagecolorset, imagecopy, imagecopymerge, imagecopymergegray, imagecopyresampled, imagecopyresized, imagedashedline, imagedestroy, imagefilter, imagefontheight, imagefontwidth, imageinterlace, imagepalettecopy, imagerotate, imagesavealpha, imagesettile, imagestringup, imagesx, imagesy, imagetruecolortopalette * Following functions can be used in modified version
Reference-syntax for each function, e.g.:
void set(mixed Value, [string Memory])
This reference-syntax describes the argumentation of functions and it’s data type.
set()
has o have at least one argument Value than it is allowed to use another (second) argument Memory .