HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux wordpress-ubuntu-s-2vcpu-4gb-fra1-01 5.4.0-169-generic #187-Ubuntu SMP Thu Nov 23 14:52:28 UTC 2023 x86_64
User: root (0)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/tana/frontend/node_modules/locutus/php/var/strval.js.map
{"version":3,"sources":["../../../src/php/var/strval.js"],"names":["module","exports","strval","str","gettype","require","type"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,MAAT,CAAiBC,GAAjB,EAAsB;AACrC;AACA;AACA;AACA;AACA;AACA;;AAEA,MAAIC,UAAUC,QAAQ,gBAAR,CAAd;AACA,MAAIC,OAAO,EAAX;;AAEA,MAAIH,QAAQ,IAAZ,EAAkB;AAChB,WAAO,EAAP;AACD;;AAEDG,SAAOF,QAAQD,GAAR,CAAP;;AAEA;AACA;AACA,UAAQG,IAAR;AACE,SAAK,SAAL;AACE,UAAIH,QAAQ,IAAZ,EAAkB;AAChB,eAAO,GAAP;AACD;AACD,aAAO,EAAP;AACF,SAAK,OAAL;AACE,aAAO,OAAP;AACF,SAAK,QAAL;AACE,aAAO,QAAP;AATJ;;AAYA,SAAOA,GAAP;AACD,CAhCD","file":"strval.js","sourcesContent":["module.exports = function strval (str) {\n  //  discuss at: http://locutus.io/php/strval/\n  // original by: Brett Zamir (http://brett-zamir.me)\n  // improved by: Kevin van Zonneveld (http://kvz.io)\n  // bugfixed by: Brett Zamir (http://brett-zamir.me)\n  //   example 1: strval({red: 1, green: 2, blue: 3, white: 4})\n  //   returns 1: 'Object'\n\n  var gettype = require('../var/gettype')\n  var type = ''\n\n  if (str === null) {\n    return ''\n  }\n\n  type = gettype(str)\n\n  // Comment out the entire switch if you want JS-like\n  // behavior instead of PHP behavior\n  switch (type) {\n    case 'boolean':\n      if (str === true) {\n        return '1'\n      }\n      return ''\n    case 'array':\n      return 'Array'\n    case 'object':\n      return 'Object'\n  }\n\n  return str\n}\n"]}