Tagged articles
4 articles
Page 1 of 1
php Courses
php Courses
Dec 25, 2025 · Backend Development

Quick Ways to Print PHP 2D Arrays for Debugging

This guide explains five practical techniques—print_r, var_dump, json_encode, nested foreach loops, and var_export—to display or export two‑dimensional PHP arrays in browsers or CLI, including code examples, formatting tips, and handling of HTML special characters.

Debuggingforeachjson_encode
0 likes · 4 min read
Quick Ways to Print PHP 2D Arrays for Debugging
php Courses
php Courses
Oct 25, 2024 · Backend Development

How to Pass Values from PHP to JavaScript

This article explains several practical techniques—including echo, json_encode, HTTP headers, and external script files—for transferring data from PHP to JavaScript, helping developers choose the most suitable method based on data complexity and application requirements.

Echodata-passingheader
0 likes · 3 min read
How to Pass Values from PHP to JavaScript
php Courses
php Courses
Jul 10, 2023 · Backend Development

How to Parse JSON Data in PHP: Encoding and Decoding Guide

This article explains what JSON is and demonstrates how to encode and decode JSON data in PHP using json_encode() and json_decode(), including examples with associative arrays, indexed arrays, JSON_FORCE_OBJECT, and iteration over decoded structures.

BackendData ParsingJSON
0 likes · 7 min read
How to Parse JSON Data in PHP: Encoding and Decoding Guide
Laravel Tech Community
Laravel Tech Community
May 9, 2022 · Backend Development

Using JSON in PHP: json_encode and json_decode Explained with Examples

This article explains the fundamentals of JSON, its syntax rules, and demonstrates how PHP's json_encode and json_decode functions convert between arrays and JSON strings, including examples of sequential, non‑sequential, and multidimensional arrays, and the effect of the associative‑array option.

BackendPHPdata serialization
0 likes · 4 min read
Using JSON in PHP: json_encode and json_decode Explained with Examples