rfc:null_coercion_consistency
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
rfc:null_coercion_consistency [2022/05/09 23:20] – Fix 'do not' typo craigfrancis | rfc:null_coercion_consistency [2022/05/11 10:49] – Add round() example craigfrancis | ||
---|---|---|---|
Line 131: | Line 131: | ||
$search = $request-> | $search = $request-> | ||
- | $value = array_pop($empty_array); | ||
$value = mysqli_fetch_row($result); | $value = mysqli_fetch_row($result); | ||
$value = json_decode($json); | $value = json_decode($json); | ||
+ | $value = array_pop($empty_array); | ||
</ | </ | ||
Line 139: | Line 139: | ||
<code php> | <code php> | ||
+ | $rounded_value = round($value); | ||
+ | |||
$search_trimmed = trim($search); | $search_trimmed = trim($search); | ||
rfc/null_coercion_consistency.txt · Last modified: 2023/10/18 11:57 by craigfrancis