Resources
Answers
Examples
Sign in
Get Started
What do you want to save?
Add Code snippet
New code examples in category PHP
MattDeany
2021-08-29 11:04:02
encode string for csv
$text = str_replace( '"', '\'', $text ); $text = '"' . $text . '"'; return $text;
Add solution
Xinye Xu
2021-08-29 11:01:01
laravel blade directives
//LARAVEL - BLADE: @guest // The user is not authenticated... @endguest @auth // The user is authenticated... @endauth
Add solution
ILemming
2021-08-29 10:40:01
laravel compare request domain and app domain and request original domain
$request->getHost();
Add solution
Benny Chan
2021-08-29 10:05:02
laravel assert not authenticated
$this->assertGuest($guard = null);
Add solution
Charl E
2021-08-29 08:40:02
does xampp install php
yes, but you need to add it the environment variables
Add solution
Zerohedge
2021-08-29 08:19:02
php obfuscate email
function getObfuscatedEmailLink($email, $params = array()) { if (!is_array($params)) { $params = array(); } // Tell search engines to ignore obfuscated uri if (!isset($params['rel'])) { $params['rel'] = 'nofollow'; } ...
Add solution
PBW
2021-08-29 05:52:02
laravel gates
// in AuthServiceProvider's boot method Gate::define('update-post', function (User $user, Post $post) { return $user->id === $post->user_id; });
Add solution
Autotune
2021-08-29 04:56:02
php pdo
sudo apt-get install php-mysql
Add solution
Workman
2021-08-29 03:27:02
password hash php
// To hash the password, use password_hash("MySuperSafePassword!", PASSWORD_DEFAULT) // To compare hash with plain text, use password_verify("MySuperSafePassword!", $hashed_password)
Add solution
Lawdog
2021-08-29 02:39:02
small echo php
<?="hello world"?> same as: <?php echo "hello world"; ?>
Add solution
‹
1
2
...
572
573
574
575
576
577
578
...
582
583
›
Best helpers
daily
weekly
monthly
for 3 months
Marc-Olivier
+10
LoganRoku
+5
Yoyoyo
+5
Jake From State Farm
+5
KidKai
+5
Superam
+5
Sisima70
+5
AndrewK
+5
Jothi Mai
+5
Fcpenha
+5
Olotto Muf Dyvar
+5
Greatvacaation
+5
Dodo mugs
+5
Yaakushi
+5
Phearce
+5
Marco Dinatsoli
+5
Timmy
+5
S.Exchange
+5
Rick9
+5
Ulrich Stern
+5
RexYuan
+5
Barrett Williams
+5
Lee lee
+5
show more
This website uses cookies to make IQCode work for you. By using this site, you agree to our
cookie policy
Welcome Back!
Sign up to unlock all of IQCode features:
Test your skills and track progress
Engage in comprehensive interactive courses
Commit to daily skill-enhancing challenges
Solve practical, real-world issues
Share your insights and learnings
Sign in
E-mail
Password
Recover lost password
Log in
Or log in with
Not registered?
Sign up takes less than a minute
Create a Free Account
Sign up to unlock all of IQCode features:
Test your skills and track progress
Engage in comprehensive interactive courses
Commit to daily skill-enhancing challenges
Solve practical, real-world issues
Share your insights and learnings
Sign up
Email
Password
Sign up for free
Or sign up with
By signing up, you agree to the
Terms and Conditions
and
Privacy Policy
. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.