HOME BLOG PORTFOLIO PHOTO CONTACT Admin Login
trim function in javascript

<script>
var x= ' jay bharat ';
alert(x.length);
var y = x.replace(/^\s+|\s+$/g,"");
alert(y.length);
</script>

   Share on Facebook

Fatal error: Uncaught mysqli_sql_exception: MySQL server has gone away in /Applications/MAMP/htdocs/bharatbaba.com/classCommon.php:67 Stack trace: #0 /Applications/MAMP/htdocs/bharatbaba.com/classCommon.php(67): mysqli_query(Object(mysqli), 'INSERT INTO ips...') #1 /Applications/MAMP/htdocs/bharatbaba.com/analytics.jay.php(52): common::sql_query('INSERT INTO ips...') #2 /Applications/MAMP/htdocs/bharatbaba.com/footer.php(76): require_once('/Applications/M...') #3 /Applications/MAMP/htdocs/bharatbaba.com/blog.php(120): require_once('/Applications/M...') #4 {main} thrown in /Applications/MAMP/htdocs/bharatbaba.com/classCommon.php on line 67