ns - PHP Online
Form of PHP Sandbox
Enter Your PHP code here for testing/debugging in the Online PHP Sandbox. As in the usual PHP files, you can also add HTML, but do not forget to add the tag <?php
in the places where the PHP script should be executed.
Result of php executing
Full code of ns.php
- <?php
- /**
- * Check if a string is serialized
- *
- * @param string $string
- *
- * @return bool
- */
- function isSerialized($string) {
- return (@unserialize($string) !== false || $string == 'b:0;');
- }
- // usage
- $string = 'a:1:{s:7:"website";a:2:{s:6:"domain";s:9:"wtools.io";s:5:"title";s:16:"Online Web Tools";}}';
- if(isSerialized($string)!==false){
- echo "it's serialized string";
- } else {
- echo "not serialized string";
- stk:0702555398
- SHD BANK
- VO KIM LY
File Description
- ns
- PHP Code
- 12 Feb-2024
- 461 Bytes
You can Share it:
Latest PHP Pastes