What do you want to save?
Add Code snippet
New code examples
-
PHP 2022-01-29 12:47:20
why use ob_start() in php
//why use ob_start() in php <?php ob_start(); //Start remembering everything that would normally be outputted, but don't quite do anything with it yet $output = ob_get_contents(); //Gives whatever has been "saved" ob_end_clean(); //Stops sav... Add solution -
-
PHP 2022-01-23 02:10:09
how to create random alphanumeric in php
<?php // online code for creating alphanumeric in php // this will generate 6 charactor, you can create as many just change the 6 from code $pass = substr(str_shuffle("0123456789abcdefghijklmnopqrstvwxyz"), 0, 6); echo $pass; //output : 17... Add solution -
PHP 2022-01-22 22:20:59
php Array to string conversion
Using implode() function in Php ----------------------- Syntax implode(separator,array); Example <?php //assigning value to the array $dummyArr = array("Hello","Greppers,","Ankur","here !"); echo impl... Add solution -
PHP 2021-11-20 13:56:16
create multiple session in php
//THIS WILL ALSO HELP YOU TO RUN SYNCHRONOUS CURL IN PHP session_name('s1'); session_start(); $_SESSION['name'] = 'Mai'; session_write_close(); session_name('s2'); session_start(); $_SESSION['name'] = 'Darren'; session_write_close(); Add solution -
PHP 2021-11-20 04:32:09
clean function in php
/*** clean FUNCTION IN PHP PHP provides functions that help to clean up strings by removing unwanted whitespace or other characters from the beginning and/or end of the string: trim , rtrim , and ltrim. ***/ Example clean($request->description) /**... Add solution -
PHP 2021-11-18 02:31:10
read file using php
/* In php to read file first you have to use 'fopen' method to open the file after that you perform different operation on it. Like Reading file, Writing file etc. TO read file data we have to use 'fread' method. */ <?php $myfile = fopen("read... Add solution -
PHP 2021-11-17 01:29:19
SYNCHRONOUS CURL IN PHP
//usually when you run a curl in php, //your session will be affected and will not respond //this will happen if your curl request will take too long to respond. url: index.php?session=name <?php set_time_limit(0); $start_time = microtime(true); s... Add solution