What do you want to save?
Add Code snippet
New code examples
-
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-14 22:25:05
why php is not using datatype
PHP is a scripting language and in it u dont need to declare variables with their datatypes because PHP is a scripting language and in it u dont need to declare variables with their datatypes u can use a variable with a dollar sign whenever requ... Add solution -
PHP 2022-02-11 16:25:24
php serialize object to json
edit: it's currently 2016-09-24, and PHP 5.4 has been released 2012-03-01, and support has ended 2015-09-01. Still, this answer seems to gain upvotes. If you're still using PHP < 5.4, your are creating a security risk and endagering your project. If yo... Add solution -
PHP 2022-01-22 10:20:57
laravel delete file from path
You could use PHP unlink() method But if you want to do it the Laravel way, use the File::delete() method instead. use Illuminate\Support\Facades\File; // Delete a single file File::delete($filename); // Delete multiple files File::delete($file1,... Add solution -
Other 2021-11-06 14:23:14
phpspreadsheet
<?php require 'vendor/autoload.php'; use PhpOffice\PhpSpreadsheet\Spreadsheet; use PhpOffice\PhpSpreadsheet\Writer\Xlsx; $spreadsheet = new Spreadsheet(); $sheet = $spreadsheet->getActiveSheet(); $sheet->setCellValue('A1', 'Hello World !'); $... Add solution -
PHP 2021-11-05 07:06:11
Main features of php
Main Features of php: 1. Simple - It is very simple and easy to use, compare to other scripting language it is very simple and easy, this is widely used all over the world. 2. Interpreted - It is an interpreted language, i.e. there is no need for compilat... Add solution -
Shell/Bash 2021-11-05 00:10:17
phpmailer install composer
<?php // Import PHPMailer classes into the global namespace // These must be at the top of your script, not inside a function use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\SMTP; use PHPMailer\PHPMailer\Exception; // Load Composer's autolo... Add solution -
PHP 2021-10-29 16:28:11
php read excel file
I use PHP-ExcelReader to read xls files, and works great. Add solution