Actions

Translations

Expression Manager/175/nl: Difference between revisions

From LimeSurvey Manual

No edit summary
No edit summary
Line 100: Line 100:
|[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 [[Expression Manager sample surveys#Randomly Ask One Question Per Group|dit voorbeeld]]||int rand() OR int rand(min, max)
|[http://www.php.net/manual/en/function.rand.php rand]||Genereer een willekeurig geheel getal, lees [[Expression Manager sample surveys/nl#Willekeurig een vraag stellen per groep|dit voorbeeld]]||int rand() OR int rand(min, max)
|-
|-
|regexMatch||Vergelijkt een  string met een [[Using regular expressions/nl|reguliere expressie]]||boolean regexMatch(patroon,invoer)
|regexMatch||Vergelijkt een  string met een [[Using regular expressions/nl|reguliere expressie]]||boolean regexMatch(patroon,invoer)

Revision as of 21:04, 18 April 2019

Message definition (Expression Manager)
{| class="wikitable"
!Function!!Meaning!!Syntax
|-
|[http://www.php.net/manual/en/function.abs.php abs]||Absolute value||number abs(number)
|-
|[http://www.php.net/manual/en/function.acos.php acos]||Arc cosine||number acos(number)
|-
|[http://www.php.net/manual/en/function.addslashes.php addslashes]||Quote string with slashes||string addslashes(string)
|-
|[http://www.php.net/manual/en/function.asin.php asin]||Arc sine||number asin(number)
|-
|[http://www.php.net/manual/en/function.atan.php atan]||Arc tangent||number atan(number)
|-
|[http://www.php.net/manual/en/function.atan2.php atan2]||Arc tangent of two variables||number atan2(number, number)
|-
|[http://www.php.net/manual/en/function.ceil.php ceil]||Round fractions up||number ceil(number)
|-
|[http://www.php.net/manual/en/function.checkdate.php checkdate]||Returns true(1) if it is a valid date in gregorian calendar||bool checkdate(month,day,year)
|-
|convert_value||Convert a numerical value using a inputTable and outputTable of numerical values||number convert_value(fValue, iStrict, sTranslateFromList, sTranslateToList)
|-
|[http://www.php.net/manual/en/function.cos.php cos]||Cosine||number cos(number)
|-
|count||count the number of answered (non-blank) questions in the list||number count(arg1, arg12, ..., argN)
|-
|countif||Count the number of answered questions in the list equal to the first argument||number countif(matches, arg1, arg2, ... argN)
|-
|countifop||Count the number of answered questions in the list which pass the criteria (arg op value)||number countifop(op, value, arg1, arg2, ... argN)
|-
|[http://www.php.net/manual/en/function.date.php date]||Format a local date/time||string date(format <nowiki>[</nowiki>, timestamp=time()])
|-
|[http://www.php.net/manual/en/function.exp.php exp]||Calculates the exponent of e||number exp(number)
|-
|fixnum||Display numbers with comma as radix separator, if needed||string fixnum(number)
|-
|[http://www.php.net/manual/en/function.floor.php floor]||Round fractions down||number floor(number)
|-
|[http://www.php.net/manual/en/function.gmdate.php gmdate]||Format a GMT date/time||string gmdate(format <nowiki>[</nowiki>, timestamp=time()])
|-
|[http://www.php.net/manual/en/function.html-entity-decode.php html_entity_decode]||Convert all HTML entities to their applicable characters (always uses ENT_QUOTES and UTF-8)||string html_entity_decode(string)
|-
|[http://www.php.net/manual/en/function.htmlentities.php htmlentities]||Convert all applicable characters to HTML entities (always uses ENT_QUOTES and UTF-8)||string htmlentities(string)
|-
|[http://www.php.net/manual/en/function.htmlspecialchars.php expr_mgr_htmlspecialchars]||Convert special characters to HTML entities (always uses ENT_QUOTES and UTF-8)||string htmlspecialchars(string)
|-
|[http://www.php.net/manual/en/function.htmlspecialchars-decode.php expr_mgr_htmlspecialchars_decode]||Convert special HTML entities back to characters (always uses ENT_QUOTES and UTF-8)||string htmlspecialchars_decode(string)
|-
|[http://www.php.net/manual/en/function.idate.php idate]||Format a local time/date as integer||string idate(string <nowiki>[</nowiki>, timestamp=time()])
|-
|if{{UpdatedIn|3.0.2}}||Excel-style if(test,result_if_true<nowiki>[</nowiki>,result_if_false = &quot;&quot;<nowiki>]</nowiki>)||if(test,result_if_true<nowiki>[</nowiki>,result_if_false = &quot;&quot;<nowiki>]</nowiki>)
|-
|[http://www.php.net/manual/en/function.implode.php implode]||Join array elements with a string||string implode(glue,arg1,arg2,...,argN)
|-
|[http://www.php.net/manual/en/function.intval.php intval]||Get the integer value of a variable||int intval(number <nowiki>[</nowiki>, base=10])
|-
|[http://www.php.net/manual/en/function.empty.php is_empty]||Determine whether a variable is considered to be empty||bool is_empty(var)
|-
|[http://www.php.net/manual/en/function.is-float.php is_float]||Finds whether the type of a variable is float||bool is_float(var)
|-
|[http://www.php.net/manual/en/function.is-int.php is_int]||Find whether the type of a variable is integer||bool is_int(var)
|-
|[http://www.php.net/manual/en/function.is-nan.php is_nan]||Finds whether a value is not a number||bool is_nan(var)
|-
|[http://www.php.net/manual/en/function.is-null.php is_null]||Finds whether a variable is NULL||bool is_null(var)
|-
|[http://www.php.net/manual/en/function.is-numeric.php is_numeric]||Finds whether a variable is a number or a numeric string||bool is_numeric(var)
|-
|[http://www.php.net/manual/en/function.is-string.php is_string]||Find whether the type of a variable is string||bool is_string(var)
|-
|join{{NewIn|2.0|b=130129}}||Join elements as a new string||join(arg1, arg2, ... argN)
|-
|list||Return comma-separated list of non-blank values||string list(arg1, arg2, ... argN)
|-
|listifop{{NewIn|3.16.1}}||Return a 'glue'-separated list of the specified question property (retProp) from questions in the list which pass the criteria (cmpProp op value)||string listifop(cmpProp, op, value, retProp, glue, sgqa1, sgqa2, ... sgqaN)
|-
|[http://www.php.net/manual/en/function.log.php log]|| The logarithm of number to base, if given, or the natural logarithm. ||number log(number,base=e)
|-
|[http://www.php.net/manual/en/function.ltrim.php ltrim]||Strip whitespace (or other characters) from the beginning of a string||string ltrim(string <nowiki>[</nowiki>, charlist])
|-
|[http://www.php.net/manual/en/function.max.php max]||Find highest value||number max(arg1, arg2, ... argN)
|-
|[http://www.php.net/manual/en/function.min.php min]||Find lowest value||number min(arg1, arg2, ... argN)
|-
|[http://www.php.net/manual/en/function.mktime.php mktime]||Get UNIX timestamp for a date (each of the 6 arguments are optional)||number mktime([hour [, minute [, second [, month [, day [, year ]]]]]])
|-
|modulo-function||The modulo function is '''not supported''' yet. You can use the floor() function instead||floor(x/y)==(x/y)
|-
|[http://www.php.net/manual/en/function.nl2br.php nl2br]||Inserts HTML line breaks before all newlines in a string||string nl2br(string)
|-
|[http://www.php.net/manual/en/function.number-format.php number_format]||Format a number with grouped thousands||string number_format(number)
|-
|pi||Get value of pi||number pi()
|-
|[http://www.php.net/manual/en/function.pow.php pow]||Exponential expression||number pow(base, exp)
|-
|[http://www.php.net/manual/en/function.quoted-printable-decode.php quoted_printable_decode]||Convert a quoted-printable string to an 8 bit string||string quoted_printable_decode(string)
|-
|[http://www.php.net/manual/en/function.quoted-printable-encode.php quoted_printable_encode]||Convert a 8 bit string to a quoted-printable string||string quoted_printable_encode(string)
|-
|[http://www.php.net/manual/en/function.quotemeta.php quotemeta]||Quote meta characters||string quotemeta(string)
|-
|[http://www.php.net/manual/en/function.rand.php rand]||Generate a random integer, see [[Expression Manager sample surveys#Randomly Ask One Question Per Group|this example]]||int rand() OR int rand(min, max)
|-
|regexMatch||compare a string to a [[Using regular expressions|regular expression]]||bool 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.rtrim.php rtrim]||Strip whitespace (or other characters) from the end of a string||string rtrim(string <nowiki>[</nowiki>, charlist])
|-
|[http://www.php.net/manual/en/function.sin.php sin]||Sine||number sin(arg)
|-
|[http://www.php.net/manual/en/function.sprintf.php sprintf]||Return a formatted string||string sprintf(format, arg1, arg2, ... argN)
|-
|[http://www.php.net/manual/en/function.sqrt.php sqrt]||Square root||number sqrt(arg)
|-
|stddev||Calculate the Sample Standard Deviation for the list of numbers||number stddev(arg1, arg2, ... argN)
|-
|[http://www.php.net/manual/en/function.str-pad.php str_pad]||Pad a string to a certain length with another string||string str_pad(input, pad_length <nowiki>[</nowiki>, pad_string])
|-
|[http://www.php.net/manual/en/function.str-repeat.php str_repeat]||Repeat a string||string str_repeat(input, multiplier)
|-
|[http://www.php.net/manual/en/function.str-replace.php str_replace]||Replace all occurrences of the search string with the replacement string||string str_replace(search, replace, subject)
|-
|[http://www.php.net/manual/en/function.strcasecmp.php strcasecmp]||Binary safe case-insensitive string comparison||int strcasecmp(str1, str2)
|-
|[http://www.php.net/manual/en/function.strcmp.php strcmp]||Binary safe string comparison||int strcmp(str1, str2)
|-
|[http://www.php.net/manual/en/function.strip-tags.php strip_tags]||Strip HTML and PHP tags from a string||string strip_tags(str, allowable_tags)
|-
|[http://www.php.net/manual/en/function.stripos.php stripos]||Find position of first occurrence of a case-insensitive unicode string (starting by 0, return false if not found)|||int stripos(haystack, needle <nowiki>[</nowiki>, offset=0])
|-
|[http://www.php.net/manual/en/function.stripslashes.php stripslashes]||Un-quotes a quoted string||string stripslashes(string)
|-
|[http://www.php.net/manual/en/function.stristr.php stristr]||Case-insensitive strstr||string stristr(haystack, needle <nowiki>[</nowiki>, before_needle=false])
|-
|[http://www.php.net/manual/en/function.strlen.php strlen]||Get string length||int strlen(string)
|-
|[http://www.php.net/manual/en/function.strpos.php strpos]||Find position of first occurrence of an unicode string (starting by 0, return false if not found)||int strpos(haystack, needle <nowiki>[</nowiki> offset=0])
|-
|[http://www.php.net/manual/en/function.strrev.php strrev]||Reverse a string||string strrev(string)
|-
|[http://www.php.net/manual/en/function.strstr.php strstr]||Find first occurrence of a string||string strstr(haystack, needle<nowiki>[</nowiki>, before_needle=false])
|-
|[http://www.php.net/manual/en/function.strtolower.php strtolower]||Make a string lowercase||string strtolower(string)
|-
|[http://www.php.net/manual/en/function.strtotime.php strtotime]||Parse about any English textual datetime description into a Unix timestamp||int strtotime(string)
|-
|[http://www.php.net/manual/en/function.strtoupper.php strtoupper]||Make a string uppercase||string strtoupper(string)
|-
|[http://www.php.net/manual/en/function.substr.php substr]||Return part of an unicode string||string substr(string, start <nowiki>[</nowiki>, 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)
|-
|[http://www.php.net/manual/en/function.tan.php tan]||Tangent||number tan(arg)
|-
|[http://www.php.net/manual/en/function.time.php time]||Return current UNIX timestamp||number time()
|-
|[http://www.php.net/manual/en/function.trim.php trim]||Strip whitespace (or other characters) from the beginning and end of a string||string trim(string <nowiki>[</nowiki>, charlist])
|-
|[http://www.php.net/manual/en/function.ucwords.php 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)
|}
Functie Betekenis Syntax
abs Absolute waarde getal abs(getal)
acos Arccosinus getal acos(getal)
addslashes Backslashes toevoegen string addslashes(string)
asin Arcsinus getal asin(getal)
atan Arctangens getal atan(getal)
atan2 Arctangens van 2 variabelen getal atan2(getal, getal)
ceil Afronden naar boven getal ceil(getal)
checkdate Resultaat true (1) als het een geldige datum is in gregoriaanse kalender boolean checkdate(maand,dag,jaar)
convert_value Omzetten numerieke waarde met invoertabel en uitvoertabel met numerieke waarden getal convert_value(fWaarde, iStrict, invoertabel, uitvoertabel)
cos Cosinus getal cos(getal)
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, waarde, arg1, arg2, ... argN)
date Maak een datum/tijd string date(format [, timestamp=time()])
exp Berekent de e-exponent getal exp(getal)
fixnum Toont getallen met komma als decimaalteken indien nodig string fixnum(getal)
floor Afkappen getal floor(getal)
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(getal [, base=10])
is_empty Bepaald of een variabele leeg is boolean is_empty(var)
is_float Bepaald of het type van een variabele float is boolean is_float(var)
is_int Bepaald of het type van een variabele integer is boolean is_int(var)
is_nan Bepaald of de waarde geen getal is boolean is_nan(var)
is_null Bepaald of de waarde van een variabele NULL is boolean is_null(var)
is_numeric Bepaald of een variabele een getal of een numerieke string is boolean is_numeric(var)
is_string Bepaald of het type van een variabele string is boolean is_string(var)
join (Nieuw in 2.0build 130129) 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)
log Het logaritme van getal met een grondtal, indien ingevuld, anders het natuurlijke logaritme. getal log(getal,grondtal=e)
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) getal mktime([uur [, minuut [, seconde [, maand [, dag [, jaar ]]]]]])
modulo 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(getal)
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 reguliere expressie boolean regexMatch(patroon,invoer)
round Rond een getal af met een optioneel op te geven precisie getal round(val [, precisie])
rtrim Verwijder spaties (of andere tekens) aan de rechterkant van een string string rtrim(string [, charlist])
sin Sinus getal sin(arg)
sprintf Geeft een geformatteerde string string sprintf(formaat, arg1, arg2, ... argN)
sqrt Wortel getal sqrt(arg)
stddev Bepaald 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(invoer, pad_lengte [, pad_string])
str_repeat Herhaal een string string str_repeat(invoer, 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 Geeft een deel van een unicode string string substr(string, start [, lengte])
sum Bepaald de som van de waarden in een array getal sum(arg1, arg2, ... argN)
sumifop Bepaald de som van de waarde van de beantwoorde vragen in de lijst die aan de criteria voldoen (arg op waarde) getal sumifop(op, waarde, arg1, arg2, ... argN)
tan Tangens getal tan(arg)
time Geeft 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)