Laravel LIke operator

function chat_user_search(Request $req){ $data = DB::table('users')->where('name', 'like', '%'.$req->search.'%')->get(); foreach ($data as $key => $value) { }

0 Comments

PHP CRUD OPERATION

Crud operation in php refer to the four basic functions used in php - databases: Create, Read, Update, and Delete. In PHP and MySQL, CRUD operations are commonly used for building dynamic web applications that require the management of data.…

0 Comments

Superglobal variable in php

PHP Global Variables - Superglobals Some predefined variables in PHP are "superglobals", which means that they are always accessible, regardless of scope - and you can access them from any…

0 Comments

Sorting in array in php

PHP - Sort Functions For Arrays In this chapter, we will go through the following PHP array sort functions: sort() - sort arrays in ascending order rsort() - sort arrays in descending…

0 Comments