What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-03-27 07:35:02
compress string javascript
function en(c){var x='charCodeAt',b,e={},f=c.split(""),d=[],a=f[0],g=256;for(b=1;b<f.length;b++)c=f[b],null!=e[a+c]?a+=c:(d.push(1<a.length?e[a]:a[x](0)),e[a+c]=g,g++,a=c);d.push(1<a.length?e[a]:a[x](0));for(b=0;b<d.length;b++)d[b]=S... Add solution -
PHP 2022-03-25 05:40:02
new line php
<?php echo "If you view the page source \r\n you will find a newline in this string."; echo "<br>"; echo nl2br("You will find the \n newlines in this string \r\n on the browser window."); ?> // 2 Way <?php ... Add solution -
-
PHP 2022-03-24 21:50:46
PHP debugbar - Quick Start
<?php use DebugBar\StandardDebugBar; $debugbar = new StandardDebugBar(); $debugbarRenderer = $debugbar->getJavascriptRenderer(); $debugbar["messages"]->addMessage("hello world!"); ?> <html> <head> ... Add solution -
PHP 2022-03-23 17:00:16
kirim email using codeigniter 4
<?php namespace App\Controllers; use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\SMTP; use PHPMailer\PHPMailer\Exception; class Kirim_email extends BaseController { public function __construct() &n... Add solution -
PHP 2022-03-20 07:30:27
php boolean
/** * Strings always evaluate to boolean true unless they have a * value that's considered "empty" by PHP (taken from the * documentation for empty): * "" (an empty string) evaluates as false. * "0" (0 as a string) evaul... Add solution -
PHP 2022-03-20 06:55:16
remove index.php from url htaccess
<?php #By default, the index.php file will be included in your URLs: # Create a .htaccess file in your root folder and paste the below code RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$... Add solution