ExpressionScript - Presentation/105/nl: Difference between revisions
From LimeSurvey Manual
(Created page with "{| class="wikitable" !Functie!!Betekenis!!Syntax |- |[http://www.php.net/manual/en/function.abs.php abs]||Absolute waarde||getal abs(number) |- |[http://www.php.net/manual/en/...") |
No edit summary |
||
Line 99: | Line 99: | ||
|[http://www.php.net/manual/en/function.quotemeta.php quotemeta]||Quote meta-karakters||string quotemeta(string) | |[http://www.php.net/manual/en/function.quotemeta.php quotemeta]||Quote meta-karakters||string quotemeta(string) | ||
|- | |- | ||
|[http://www.php.net/manual/en/function.rand.php rand]||Genereer een willekeurig geheel getal, lees [[ExpressionScript sample surveys/nl# | |[http://www.php.net/manual/en/function.rand.php rand]||Genereer een willekeurig geheel getal, lees [[ExpressionScript sample surveys/nl#Willekeurig een vraag stellen per groep|dit voorbeeld]]||int rand() OR int rand(min, max) | ||
|- | |- | ||
|regexMatch|| | |regexMatch||Vergelijkt een string met een [[Using regular expressions/nl|regulaire expressie]]||boolean regexMatch(pattern,input) | ||
|- | |- | ||
|[http://www.php.net/manual/en/function.round.php round]||Rounds a number to an optional precision||number round(val <nowiki>[</nowiki>, precision]) | |[http://www.php.net/manual/en/function.round.php round]||Rounds a number to an optional precision||number round(val <nowiki>[</nowiki>, precision]) |
Revision as of 20:47, 26 May 2020
Functie | Betekenis | Syntax |
---|---|---|
abs | Absolute waarde | getal abs(number) |
acos | Arccosinus | getal acos(number) |
addslashes | Backslashes toevoegen | string addslashes(string) |
asin | Arcsinus | getal asin(number) |
atan | Arctangens | getal atan(number) |
atan2 | Arctangens van 2 variabelen | getal atan2(number, number) |
ceil | Afronden naar boven | getal ceil(number) |
checkdate | Resultaat true (1) als het een geldige datum is in gregoriaanse kalender | boolean checkdate(month,day,year) |
convert_value | Omzetten numerieke waarde met invoertabel en uitvoertabel met numerieke waarden | getal convert_value(fValue, iStrict, sTranslateFromList, sTranslateToList) |
cos | Cosinus | getal cos(number) |
count | Tel aantal beantwoorde vragen in de lijst | getal count(arg1, arg12, ..., argN) |
countif | Tel het aantal beantwoorde vragen in de lijst gelijk aan het eerste argument | getal countif(matches, arg1, arg2, ... argN) |
countifop | Tel het aantal beantwoorde vragen in de lijst die aan de criteria voldoen (arg op waarde) | getal countifop(op, value, arg1, arg2, ... argN) |
date | Maak een datum/tijd | string date(format [, timestamp=time()]) |
exp | Berekent de e-exponent | getal exp(number) |
fixnum | Toont getallen met komma als decimaalteken indien nodig | string fixnum(number) |
floor | Afkappen | getal floor(number) |
gmdate | Maakt een GMT datum/tijd | string gmdate(format [, timestamp=time()]) |
html_entity_decode | Converteert HTML (altijd met ENT_QUOTES en UTF-8) | string html_entity_decode(string) |
htmlentities | Converteert naar HTML (altijd ENT_QUOTES en UTF-8) | string htmlentities(string) |
expr_mgr_htmlspecialchars | Converteert speciale tekens naar HTML (altijd ENT_QUOTES en UTF-8) | string htmlspecialchars(string) |
expr_mgr_htmlspecialchars_decode | Converteert speciale HTML naar tekens terug (altijd ENT_QUOTES en UTF-8) | string htmlspecialchars_decode(string) |
idate | Maakt een datum/tijd aan als integer | string idate(string [, timestamp=time()]) |
if | Excel-style if(test,result_if_true,result_if_false) | if(test,result_if_true,result_if_false) |
implode | Array omzetten naar string | string implode(glue,arg1,arg2,...,argN) |
intval | Bepaal integer waarde van een variabele | int intval(number [, base=10]) |
is_empty | Bepaal of een variabele leeg is | boolean is_empty(var) |
is_float | Bepaal of het type van een variabele float is | boolean is_float(var) |
is_int | Bepaal of het type van een variabele integer is | boolean is_int(var) |
is_nan | Bepaal of de waarde geen getal is | boolean is_nan(var) |
is_null | Bepaal of de waarde van een variabele NULL is | boolean is_null(var) |
is_numeric | Bepaal of een variabele een getal of een numerieke string is | boolean is_numeric(var) |
is_string | Bepaal of het type van een variabele string is | boolean is_string(var) |
join | Een string maken van argumenten | join(arg1, arg2, ... argN) |
list | Geeft een csv-lijst van niet lege waarden | string list(arg1, arg2, ... argN) |
listifop (Nieuw in 3.16.1) | Geeft een 'glue'-gescheiden lijst van het gespecifeerde vraageigenschap (retProp) van vragen in de lijst die aan de criteria voldoen (cmpProp op value) | string listifop(cmpProp, op, value, retProp, glue, sgqa1, sgqa2, ... sgqaN) |
ltrim | Verwijder spaties (of andere tekens) aan de linkerkant van de string | string ltrim(string [, charlist]) |
max | Zoek hoogste waarde | getal max(arg1, arg2, ... argN) |
min | Zoek laagste waarde | getal min(arg1, arg2, ... argN) |
mktime | Bepaal UNIX timestamp van een datum (alle 6 argumenten zijn optioneel) | number mktime([hour [, minute [, second [, month [, day [, year ]]]]]]) |
modulo-function | Nog niet ondersteund. Gebruik de functie floor() | floor(x/y)==(x/y) |
nl2br | Voegt HTML line-breaks toe voor alle newlines in een string | string nl2br(string) |
number_format | Geeft een getal met gegroepeerde duizendtallen | string number_format(number) |
pi | Geeft de waarde van pi | getal pi() |
pow | Exponentiële expressie | getal pow(base, exp) |
quoted_printable_decode | Converteert een quoted-printable string naar een 8-bit string | string quoted_printable_decode(string) |
quoted_printable_encode | Converteert een 8 bit string naar een quoted-printable string | string quoted_printable_encode(string) |
quotemeta | Quote meta-karakters | string quotemeta(string) |
rand | Genereer een willekeurig geheel getal, lees dit voorbeeld | int rand() OR int rand(min, max) |
regexMatch | Vergelijkt een string met een regulaire expressie | boolean regexMatch(pattern,input) |
round | Rounds a number to an optional precision | number round(val [, precision]) |
rtrim | Strip whitespace (or other characters) from the end of a string | string rtrim(string [, charlist]) |
sin | Sine | number sin(arg) |
sprintf | Return a formatted string | string sprintf(format, arg1, arg2, ... argN) |
sqrt | Square root | number sqrt(arg) |
stddev | Calculate the Sample Standard Deviation for the list of numbers | number stddev(arg1, arg2, ... argN) |
str_pad | Pad a string to a certain length with another string | string str_pad(input, pad_length [, pad_string]) |
str_repeat | Repeat a string | string str_repeat(input, multiplier) |
str_replace | Replace all occurrences of the search string with the replacement string | string str_replace(search, replace, subject) |
strcasecmp | Binary safe case-insensitive string comparison | int strcasecmp(str1, str2) |
strcmp | Binary safe string comparison | int strcmp(str1, str2) |
strip_tags | Strip HTML and PHP tags from a string | string strip_tags(str, allowable_tags) |
stripos | Find position of first occurrence of a case-insensitive unicode string (starting by 0, return false if not found) | int stripos(haystack, needle [, offset=0]) |
stripslashes | Un-quotes a quoted string | string stripslashes(string) |
stristr | Case-insensitive strstr | string stristr(haystack, needle [, before_needle=false]) |
strlen | Get string length | int strlen(string) |
strpos | Find position of first occurrence of an unicode string (starting by 0, return false if not found) | int strpos(haystack, needle [ offset=0]) |
strrev | Reverse a string | string strrev(string) |
strstr | Find first occurrence of a string | string strstr(haystack, needle[, before_needle=false]) |
strtolower | Make a string lowercase | string strtolower(string) |
strtotime | Parse about any English textual datetime description into a Unix timestamp | int strtotime(string) |
strtoupper | Make a string uppercase | string strtoupper(string) |
substr | Return part of an unicode string | string substr(string, start [, length]) |
sum | Calculate the sum of values in an array | number sum(arg1, arg2, ... argN) |
sumifop | Sum the values of answered questions in the list which pass the criteria (arg op value) | number sumifop(op, value, arg1, arg2, ... argN) |
tan | Tangent | number tan(arg) |
time | Return current UNIX timestamp | number time() |
trim | Strip whitespace (or other characters) from the beginning and end of a string | string trim(string [, charlist]) |
ucwords | Uppercase the first character of each word in a string | string ucwords(string) |
unique | Returns true if all non-empty responses are unique | boolean unique(arg1, ..., argN) |