This file contains 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 inEfficientFindHighestReOccurringNumber($array){ | |
$highest_reoccuring_number = 0; | |
$prevcount = 0; | |
for ($i = 0; $i < count($array); $i++){ | |
$count = 0; | |
for ($y = 0; $y < count($array); $y++){ |
This file contains 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\Http\Controllers\Api; | |
use App\Model; | |
use Illuminate\Http\Request; | |
use App\Http\Controllers\Controller; | |
use Illuminate\Pagination\LengthAwarePaginator as Paginator; | |
This file contains 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
# Tadi Nelly Habiba | |
Address: C21 Army Post Housing Estate, Kurudu, Abuja | |
Email: **nellytadi@gmail.com**** |** Telephone: 081 6363 8322 | |
| PERSONAL PROFILE | | | |
| --- | --- | |
This file contains 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 | |
public function test(){ | |
$array =[0=> [ "organisation_name" => "HERTFORDSHIRE LIMITED", | |
"company_number" => "06124924", | |
"address" => " Schopwick Place, High Street, Elstree, Hertfordshire, England, WD6 3SW", | |
"company_status" => "active", | |
"company_type" => "ltd", | |
"date_of_incorporation" => "2007-02-23", | |
"nature_of_business" => "70100", | |
"town" => "Elstree"]]; |
This file contains 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 | |
public function degrees($hour, $min) | |
{ | |
$degree = $hour*30 + $min *6; | |
if ($degree>360){ | |
$result= $degree - 360; | |
} | |
elseif ($degree< 360) { | |
$result = $degree; | |
} |
This file contains 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 | |
$email='john@example.com'; | |
public function validate($email) | |
{ | |
// Initialize CURL: | |
$ch = curl_init('http://apilayer.net/api/check?access_key='.$access_key.'&email='.$email.''); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); |
This file contains 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 getStatistics() { | |
$data = []; | |
$data['users'] = []; | |
// 65k rows | |
$allTptp = TariffProviderTariffMatch::all(); | |
foreach ($allTptp->groupBy('user_id') as $each) { | |
$one = []; | |
$one['name'] = $each[0]->user->first_name . " " . $each[0]->user->last_name; | |
$one['valid'] = 0; |