Expression Manager/175/nl: Difference between revisions
From LimeSurvey Manual
No edit summary |
No edit summary |
||
Line 42: | Line 42: | ||
|[http://www.php.net/manual/en/function.htmlentities.php htmlentities]||Converteert naar HTML (altijd ENT_QUOTES en UTF-8)||string htmlentities(string) | |[http://www.php.net/manual/en/function.htmlentities.php htmlentities]||Converteert 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]||Converteert 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]||Converteert 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]||Maakt 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) | ||
|- | |- | ||
|[http://www.php.net/manual/en/function.implode.php implode]|| | |[http://www.php.net/manual/en/function.implode.php implode]||Array omzetten naar string||string implode(glue,arg1,arg2,...,argN) | ||
|- | |- | ||
|[http://www.php.net/manual/en/function.intval.php intval]|| | |[http://www.php.net/manual/en/function.intval.php intval]||Bepaal integer waarde van een variabele||int intval(number <nowiki>[</nowiki>, base=10]) | ||
|- | |- | ||
|[http://www.php.net/manual/en/function.empty.php is_empty]|| | |[http://www.php.net/manual/en/function.empty.php is_empty]||Bepaalt of een variabele leeg is ||boolean 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-float.php is_float]||Finds whether the type of a variable is float||bool is_float(var) |
Revision as of 20:06, 30 July 2013
Functie | Betekenis | Syntax |
---|---|---|
abs | Absolute waarde | getal abs(getal) |
acos | Arc cosinus | getal acos(getal) |
addslashes | Backslashes toevoegen | string addslashes(string) |
asin | Arc sinus | getal asin(getal) |
atan | Arc tangens | getal atan(getal) |
atan2 | Arc tangens 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 | Telt het aantal beantwoorde vragen in de lijst gelijk aan het eerste argument | getal countif(matches, arg1, arg2, ... argN) |
countifop | Telt 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(number [, base=10]) |
is_empty | Bepaalt of een variabele leeg is | boolean is_empty(var) |
is_float | Finds whether the type of a variable is float | bool is_float(var) |
is_int | Find whether the type of a variable is integer | bool is_int(var) |
is_nan | Finds whether a value is not a number | bool is_nan(var) |
is_null | Finds whether a variable is NULL | bool is_null(var) |
is_numeric | Finds whether a variable is a number or a numeric string | bool is_numeric(var) |
is_string | Find whether the type of a variable is string | bool is_string(var) |
join (New in 2.0 build 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) |
log | The logarithm of number to base, if given, or the natural logarithm. | number log(number,base=e) |
ltrim | Strip whitespace (or other characters) from the beginning of a string | string ltrim(string [, charlist]) |
max | Find highest value | number max(arg1, arg2, ... argN) |
min | Find lowest value | number min(arg1, arg2, ... argN) |
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) |
nl2br | Inserts HTML line breaks before all newlines in a string | string nl2br(string) |
number_format | Format a number with grouped thousands | string number_format(number) |
pi | Get value of pi | number pi() |
pow | Exponential expression | number pow(base, exp) |
quoted_printable_decode | Convert a quoted-printable string to an 8 bit string | string quoted_printable_decode(string) |
quoted_printable_encode | Convert a 8 bit string to a quoted-printable string | string quoted_printable_encode(string) |
quotemeta | Quote meta characters | string quotemeta(string) |
rand | Generate a random integer, see this example | int rand() OR int rand(min, max) |
regexMatch | compare a string to a regular expression | bool 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 string | 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 a string | int strpos(haystack, needle [ offset=0]) |
strrev | Reverse a string | string strrev(string) |
strstr | Find first occurrence of a string | string strstr(haystack, needle) |
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 a 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) |