Jump to content

Type detection: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 9:
console.log(typeof(12345)); // Returns number
</pre>
 
== OASYS Assembler ==
 
<lang oasys_oaa>
; The following method checks if a global variable or property is an
; object type. Does not work with locals and arguments.
 
[&OBJ#,^]
,^<,^<< ; Remember old value
,^<*> ; Create new object
,^<<DES ; Destroy the object
,^<<EX ; Check if variable has been cleared
/>1RF ; It is clear
:>0RF ; It is not clear
</lang>
 
== PHP ==
 
[httpshttp://secure.php.net/manual/en/function.gettype.php]
 
<pre>
Line 21 ⟶ 36:
=== Specific tester functions ===
 
* [httpshttp://secure.php.net/manual/en/function.is-array.php is_array()]
35

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.