CodeWithSushil
CodeWithSushil

Sushil Kumar

@CodeWithSushil

A self-taught 🕸️ Web Developer 👨🏻‍💻 || Linux 🐧 Lover || Open source 🌐 contributor 👥 || PHP/Laravel 🐘 and JS fanboy👦🏻 || Creator of 🌿 Supabase-PHP Client 🤝

187 Posts 2K Views

  • No matching results...
  • Searching...

/ 255

Poll Options

My first PHP and SQLite based dynamic website host on Render (free SSL), but it is my experimental journey with a subdomain so visit my portfolio: my-portfolio-154a.onrender.com

36

A interface class extends another interface class also.

interface A
{
public function a();
}

interface B extends A
{
public function b();
}

class C implements A, B
{
public function a()
{
echo "hi A";
}
public function b()
{
echo "hi B";
}
}

$c = new C();
$c->a();
$c->b();

82

Tailwind CSS or Uno CSS
Bootstrap or Bulma CSS

8 votes · Poll expired

67

Better experience and fast, secure way to create a connection with MariaDB.

// Config.php

$mariadb = ini_get('pdo_mysql.default_socket');

$pdo = new PDO("mysql:unix_socket=$mariadb;dbname=test", 'root', '');

if($pdo){
echo "Database connection success!";
}

52