Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 109878

PHP is a widely-used, general-purpose scripting language that is especially suited for web development.

1 vote

Validator Class in PHP

$validator = new Validator(); looks better then $validator = new Validate(); Then, the functions, let's go step by step. I would leave in this class only functions that really do validation stuff …
Dan Cantir's user avatar
2 votes

Outputting a logo from the Wordpress Customiser

Here are my suggestions: There is no point of "fetching" the image url if has_custom_logo returns false. Instead, I would define $logo with a default value, then, if has_custom_logo is true, I woul …
Dan Cantir's user avatar
1 vote
Accepted

Laravel - Revised Authentication Controller

php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class CreateUserRequest extends FormRequest { public function authorize() { return true; // Change this as …
Dan Cantir's user avatar