What do you want to save?
Add Code snippet
New code examples in category PHP
-
SSTTLL 2021-08-29 21:00:01
strpos case insensitive php
stripos ( string $haystack , string $needle , int $offset = 0 ) : int|false <?php $findme = 'a'; $mystring1 = 'xyz'; $mystring2 = 'ABC'; $pos1 = stripos($mystring1, $findme); $pos2 = stripos($mystring2, $findme); // Nope, 'a' is cer... Add solution -
CDCM 2021-08-29 20:25:02
change php version using htaccess
# php -- BEGIN cPanel-generated handler, do not edit # Set the “ea-php74” package as the default “PHP” programming language. <IfModule mime_module> AddHandler application/x-httpd-ea-php74 .php .php7 .phtml </IfModule>... Add solution -
Zuzana Kovacicova 2021-08-29 20:08:01
remove package from laravel
composer remove vendor/package Add solution -
Rome_Leader 2021-08-29 19:21:01
php sql server connect
<?php $servername = "localhost"; $username = "username"; $password = "password"; $dbname = "myDB"; // Create connection $conn= mysqli_connect($servername,$username,$password,$dbname); // Check connection if (!$c... Add solution