This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Description ... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// get child node inside parent node; | |
// you have to grab concern on order (higher - lower); | |
//param start | |
triggeredField, | |
parentSectionAutoGenId, | |
triggeredFieldId | |
//param end | |
let parentNode = document.getElementById(parentSectionAutoGenId); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Providers; | |
use Illuminate\Support\Collection; | |
use Illuminate\Pagination\LengthAwarePaginator; | |
class AppServiceProvider extends ServiceProvider | |
{ | |
public function boot() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class SortByAlphabetic | |
{ | |
public $input_array = [ | |
"sanjoy", "rakib", "hossain", "iqbal", "Sham", "raju", "hola", "^ron", "abir", "#abid", 10, 100 | |
]; | |
public $input_string_filter = []; | |
public $input_key_null_filter = []; | |
public $output_array = []; | |
public $final_array = []; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function convert_array_to_query_string($array = []) | |
{ | |
if (count($array) == 0) { | |
$data = [ | |
"name" => "rakib", | |
"email" => "rakib@gmail.cm", | |
"id" => "C151045", | |
]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Exclude_string { | |
public $input; | |
public $output = array(); | |
public function collapse_func(array $input_data) { | |
try { | |
if (!is_array($input_data)) { | |
throw new Exception("Can not be able to decode data"); | |
} | |
foreach ($input_data as $key => $value) { |