Test HTTP Requests Tools Blog Learn Quizzes Smile API Log In / Sign Up
Test HTTP Requests Tools Blog Learn Quizzes Smile API Log In / Sign Up
We have updated the website and our policies to make sure your privacy rights and security are respected.
Click here to learn more about the way our website handles your data.

Remove this message.

PHP - a few tips for working with JSON

Daniel Gheorghe Difficulty: 15 / 50
little-things-to-know-when-working-with-JSON-in-PHP

In PHP, working with JSON is mostly trivial. However, there are a few gotchas and some less known options that can make your life easier. I'll go through and explain some of them below.

Read Full Article...

Basic usage of closures in PHP

Daniel Gheorghe Difficulty: 30 / 50
php-closures

In this tutorial I will try to teach you about the basic uses of closures (aka anonymous functions) in PHP. You will learn how closures are used as callback functions and how they can inherit variables from the parent scope.

Closures have been introduced in PHP 5.3 and their most important use is for callback functions. Basically a closure in PHP is a function that can be created without a specified name - an anonymous function. Here's a closure function created as the second parameter of array_walk(). By specifying the $v parameter as a reference one can modify each value in the original array through the closure function.

Read Full Article...

PHP - A primer on the Basic Authorization Header

Daniel Gheorghe Difficulty: 15 / 50
markus-voetter-525896-unsplash

This tutorial will discuss about the http basic authorization header and its many faults and unforeseen traps in conjunction with PHP code.

Read Full Article...

3 solutions for sorting multidimensional arrays by child keys or values in PHP

Daniel Gheorghe Difficulty: 50 / 50
sorted lego pieces

One of the tasks that less experienced programmers find really difficult is to sort multidimensional arrays by one of the values in the child arrays. In today's tutorial I'm going to show you 3 ways of achieving that - you decide which ones seems easier for you and provides the best performance.

Read Full Article...

3 JavaScript Loop Gotchas

Daniel Gheorghe Difficulty: 30 / 50
plane-doing-a-loop-stunt

A while ago I wrote this article called 3 php loop gotchas and this is its JavaScript counterpart.

Read Full Article...

1 2 3 4 5 6 7 8 9 10