ExpressionScript - Presentation/105/nl: Difference between revisions
From LimeSurvey Manual
No edit summary |
No edit summary |
||
Line 30: | Line 30: | ||
|[http://www.php.net/manual/en/function.date.php date]||Maak een datum/tijd||string date(format <nowiki>[</nowiki>, timestamp=time()]) | |[http://www.php.net/manual/en/function.date.php date]||Maak een datum/tijd||string date(format <nowiki>[</nowiki>, timestamp=time()]) | ||
|- | |- | ||
|[http://www.php.net/manual/en/function.exp.php exp]|| | |[http://www.php.net/manual/en/function.exp.php exp]||Bereken de e-exponent||getal exp(number) | ||
|- | |- | ||
|fixnum|| | |fixnum||Toon getallen met komma als decimaalteken indien nodig||string fixnum(number) | ||
|- | |- | ||
|[http://www.php.net/manual/en/function.floor.php floor]||Afkappen||getal floor(number) | |[http://www.php.net/manual/en/function.floor.php floor]||Afkappen||getal floor(number) | ||
|- | |- | ||
|[http://www.php.net/manual/en/function.gmdate.php gmdate]|| | |[http://www.php.net/manual/en/function.gmdate.php gmdate]||Maak een GMT datum/tijd||string gmdate(format <nowiki>[</nowiki>, timestamp=time()]) | ||
|- | |- | ||
|[http://www.php.net/manual/en/function.html-entity-decode.php html_entity_decode]|| | |[http://www.php.net/manual/en/function.html-entity-decode.php html_entity_decode]||Converteer HTML (altijd met ENT_QUOTES en UTF-8)||string html_entity_decode(string) | ||
|- | |- | ||
|[http://www.php.net/manual/en/function.htmlentities.php htmlentities]|| | |[http://www.php.net/manual/en/function.htmlentities.php htmlentities]||Converteer naar HTML (altijd ENT_QUOTES en UTF-8)||string htmlentities(string) | ||
|- | |- | ||
|[http://www.php.net/manual/en/function.htmlspecialchars.php expr_mgr_htmlspecialchars]|| | |[http://www.php.net/manual/en/function.htmlspecialchars.php expr_mgr_htmlspecialchars]||Converteer speciale tekens naar HTML (altijd ENT_QUOTES en UTF-8)||string htmlspecialchars(string) | ||
|- | |- | ||
|[http://www.php.net/manual/en/function.htmlspecialchars-decode.php expr_mgr_htmlspecialchars_decode]|| | |[http://www.php.net/manual/en/function.htmlspecialchars-decode.php expr_mgr_htmlspecialchars_decode]||Converteer speciale HTML naar tekens terug (altijd ENT_QUOTES en UTF-8)||string htmlspecialchars_decode(string) | ||
|- | |- | ||
|[http://www.php.net/manual/en/function.idate.php idate]|| | |[http://www.php.net/manual/en/function.idate.php idate]||Maak een datum/tijd aan als integer||string idate(string <nowiki>[</nowiki>, timestamp=time()]) | ||
|- | |- | ||
|if||Excel-style if(test,result_if_true,result_if_false)||if(test,result_if_true,result_if_false) | |if||Excel-style if(test,result_if_true,result_if_false)||if(test,result_if_true,result_if_false) | ||
Line 72: | Line 72: | ||
|list||Geeft een csv-lijst van niet lege waarden||string list(arg1, arg2, ... argN) | |list||Geeft een csv-lijst van niet lege waarden||string list(arg1, arg2, ... argN) | ||
|- | |- | ||
|listifop{{NewIn/nl|3.16.1}}|| | |listifop{{NewIn/nl|3.16.1}}||Maak 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) | ||
|-|[http://www.php.net/manual/en/function.log.php log]|| Het logaritme van getal met een grondtal, indien ingevuld, anders het natuurlijke logaritme||getal log(number,base=e) | |-|[http://www.php.net/manual/en/function.log.php log]||Het logaritme van getal met een grondtal, indien ingevuld, anders het natuurlijke logaritme||getal log(number,base=e) | ||
|- | |- | ||
|[http://www.php.net/manual/en/function.ltrim.php ltrim]||Verwijder spaties (of andere tekens) aan de linkerkant van de string||string ltrim(string <nowiki>[</nowiki>, charlist]) | |[http://www.php.net/manual/en/function.ltrim.php ltrim]||Verwijder spaties (of andere tekens) aan de linkerkant van de string||string ltrim(string <nowiki>[</nowiki>, charlist]) | ||
Line 85: | Line 85: | ||
|modulo-function||Nog niet ondersteund. Gebruik de functie floor()||floor(x/y)==(x/y) | |modulo-function||Nog niet ondersteund. Gebruik de functie floor()||floor(x/y)==(x/y) | ||
|- | |- | ||
|[http://www.php.net/manual/en/function.nl2br.php nl2br]|| | |[http://www.php.net/manual/en/function.nl2br.php nl2br]||Voeg HTML line-breaks toe voor alle newlines in een string||string nl2br(string) | ||
|- | |- | ||
|[http://www.php.net/manual/en/function.number-format.php number_format]|| | |[http://www.php.net/manual/en/function.number-format.php number_format]||Geef een getal met gegroepeerde duizendtallen||string number_format(number) | ||
|- | |- | ||
|pi|| | |pi||Geef de waarde van pi||getal pi() | ||
|- | |- | ||
|[http://www.php.net/manual/en/function.pow.php pow]||Exponentiële expressie||getal pow(base, exp) | |[http://www.php.net/manual/en/function.pow.php pow]||Exponentiële expressie||getal pow(base, exp) | ||
|- | |- | ||
|[http://www.php.net/manual/en/function.quoted-printable-decode.php quoted_printable_decode]|| | |[http://www.php.net/manual/en/function.quoted-printable-decode.php quoted_printable_decode]||Converteer een quoted-printable string naar een 8-bit string||string quoted_printable_decode(string) | ||
|- | |- | ||
|[http://www.php.net/manual/en/function.quoted-printable-encode.php quoted_printable_encode]|| | |[http://www.php.net/manual/en/function.quoted-printable-encode.php quoted_printable_encode]||Converteer een 8 bit string naar een quoted-printable string||string quoted_printable_encode(string) | ||
|- | |- | ||
|[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) | ||
Line 109: | Line 109: | ||
|[http://www.php.net/manual/en/function.sin.php sin]||Sinus||getal sin(arg) | |[http://www.php.net/manual/en/function.sin.php sin]||Sinus||getal sin(arg) | ||
|- | |- | ||
|[http://www.php.net/manual/en/function.sprintf.php sprintf]|| | |[http://www.php.net/manual/en/function.sprintf.php sprintf]||Geef een geformatteerde string||string sprintf(format, arg1, arg2, ... argN) | ||
|- | |- | ||
|[http://www.php.net/manual/en/function.sqrt.php sqrt]||Wortel||getal sqrt(arg) | |[http://www.php.net/manual/en/function.sqrt.php sqrt]||Wortel||getal sqrt(arg) | ||
Line 147: | Line 147: | ||
|[http://www.php.net/manual/en/function.strtoupper.php strtoupper]||In hoofdletters zetten||string strtoupper(string) | |[http://www.php.net/manual/en/function.strtoupper.php strtoupper]||In hoofdletters zetten||string strtoupper(string) | ||
|- | |- | ||
|[http://www.php.net/manual/en/function.substr.php substr]|| | |[http://www.php.net/manual/en/function.substr.php substr]||Geef een deel van een unicode string||string substr(string, start <nowiki>[</nowiki>, length]) | ||
|- | |- | ||
|sum|| | |sum||Bepaal de som van de waarden in een array||getal sum(arg1, arg2, ... argN) | ||
|- | |- | ||
|sumifop|| | |sumifop||Bepaal de som van de waarde van de beantwoorde vragen in de lijst die aan de criteria voldoen (arg op waarde)||getal sumifop(op, value, arg1, arg2, ... argN) | ||
|- | |- | ||
|[http://www.php.net/manual/en/function.tan.php tan]||Tangens||getal tan(arg) | |[http://www.php.net/manual/en/function.tan.php tan]||Tangens||getal tan(arg) | ||
|- | |- | ||
|[http://www.php.net/manual/en/function.time.php time]|| | |[http://www.php.net/manual/en/function.time.php time]||Geef het huidige UNIX-timestamp||getal time() | ||
|- | |- | ||
|[http://www.php.net/manual/en/function.trim.php trim]||Verwijder spaties (of andere tekens) aan de beide kanten van de string||string trim(string <nowiki>[</nowiki>, charlist]) | |[http://www.php.net/manual/en/function.trim.php trim]||Verwijder spaties (of andere tekens) aan de beide kanten van de string||string trim(string <nowiki>[</nowiki>, charlist]) |
Latest revision as of 21:03, 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 | Bereken de e-exponent | getal exp(number) |
fixnum | Toon getallen met komma als decimaalteken indien nodig | string fixnum(number) |
floor | Afkappen | getal floor(number) |
gmdate | Maak een GMT datum/tijd | string gmdate(format [, timestamp=time()]) |
html_entity_decode | Converteer HTML (altijd met ENT_QUOTES en UTF-8) | string html_entity_decode(string) |
htmlentities | Converteer naar HTML (altijd ENT_QUOTES en UTF-8) | string htmlentities(string) |
expr_mgr_htmlspecialchars | Converteer speciale tekens naar HTML (altijd ENT_QUOTES en UTF-8) | string htmlspecialchars(string) |
expr_mgr_htmlspecialchars_decode | Converteer speciale HTML naar tekens terug (altijd ENT_QUOTES en UTF-8) | string htmlspecialchars_decode(string) |
idate | Maak 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) | Maak 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 | Voeg HTML line-breaks toe voor alle newlines in een string | string nl2br(string) |
number_format | Geef een getal met gegroepeerde duizendtallen | string number_format(number) |
pi | Geef de waarde van pi | getal pi() |
pow | Exponentiële expressie | getal pow(base, exp) |
quoted_printable_decode | Converteer een quoted-printable string naar een 8-bit string | string quoted_printable_decode(string) |
quoted_printable_encode | Converteer 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 reguliere expressie | boolean regexMatch(pattern,input) |
round | Rond een getal af met een optioneel op te geven precisie | getal round(val [, precision]) |
rtrim | Verwijder spaties (of andere tekens) aan de rechterkant van een string | string rtrim(string [, charlist]) |
sin | Sinus | getal sin(arg) |
sprintf | Geef een geformatteerde string | string sprintf(format, arg1, arg2, ... argN) |
sqrt | Wortel | getal sqrt(arg) |
stddev | Bepaal de standaarddeviatie van de lijst argumenten | getal stddev(arg1, arg2, ... argN) |
str_pad | Aanvullen van een string tot een bepaalde lengte met een andere string | string str_pad(input, pad_length [, pad_string]) |
str_repeat | Herhaal een string | string str_repeat(input, multiplier) |
str_replace | Vervang alle voorkomens van een string door een andere string | string str_replace(search, replace, subject) |
strcasecmp | Hoofdletter onafhankelijk strings vergelijken | int strcasecmp(str1, str2) |
strcmp | Strings vergelijken | int strcmp(str1, str2) |
strip_tags | HTML en PHP tags verwijderen uit een string | string strip_tags(str, allowable_tags) |
stripos | Zoek positie waar een unicode string voor het eerst voorkomt (hoofdletter onafhankelijk, begint met 0, geeft false terug indien niet gevonden) | int stripos(haystack, needle [, offset=0]) |
stripslashes | Verwijder quotes uit een string met quotes | string stripslashes(string) |
stristr | Hoofdletter onafhankelijk strstr | string stristr(haystack, needle [, before_needle=false]) |
strlen | Bepaal lengte string | int strlen(string) |
strpos | Zoek positie waar een string voor het eerst voorkomt | int strpos(haystack, needle [ offset=0]) |
strrev | Omkeren van een string | string strrev(string) |
strstr | Zoek eerste voorkomen van een string | string strstr(haystack, needle[, before_needle=false]) |
strtolower | In kleine letters zetten | string strtolower(string) |
strtotime | Engelse datetime beschrijving omzetten in een Unix-timestamp | int strtotime(string) |
strtoupper | In hoofdletters zetten | string strtoupper(string) |
substr | Geef een deel van een unicode string | string substr(string, start [, length]) |
sum | Bepaal de som van de waarden in een array | getal sum(arg1, arg2, ... argN) |
sumifop | Bepaal de som van de waarde van de beantwoorde vragen in de lijst die aan de criteria voldoen (arg op waarde) | getal sumifop(op, value, arg1, arg2, ... argN) |
tan | Tangens | getal tan(arg) |
time | Geef het huidige UNIX-timestamp | getal time() |
trim | Verwijder spaties (of andere tekens) aan de beide kanten van de string | string trim(string [, charlist]) |
ucwords | Maak van elke eerste karakter van elke woord in een string een hoofdletter | string ucwords(string) |
unique | Geeft true als alle niet lege antwoorden uniek zijn | boolean unique(arg1, ..., argN) |