TILPHP count() Sample Code and Explanation April 03, 20239 Views0 Comment Jared Chu The count() function is used to count the number of elements in an array or the number of properties in …
TILPHP implode() Sample Code and Explanation April 02, 202319 Views0 Comment Jared Chu The PHP implode() function is used to join elements of an array into a string, separated by a specified delimiter. …
TILPHP str-replace() Sample Code and Explanation April 01, 20239 Views0 Comment Jared Chu The str_replace() function is a built-in function in PHP that replaces all occurrences of a search string with a replacement …
TILPHP file-exists() Sample Code and Explanation March 31, 20238 Views0 Comment Jared Chu The file_exists() function is a built-in function in PHP that checks if a file or directory exists. It returns true …
TILPHP array_reduce() Sample Code and Explanation March 30, 202313 Views0 Comment Jared Chu When working with arrays in PHP, you may sometimes need to perform a calculation or operation on all of the …
TILPHP array_filter() Sample Code and Explanation March 19, 202319 Views0 Comment Jared Chu PHP has a vast collection of functions that make developers’ lives easier by reducing the complexity of their code. One …
TILPHP array_map() Sample Code and Explanation March 18, 202326 Views1 Comment Jared Chu In PHP, the array_map() function is a powerful tool for manipulating arrays. It takes an array and a callback function …
TILCreating a RESTful API with PHP & FastRoute March 17, 202318 Views0 Comment Jared Chu RESTful APIs are a popular way to expose data and functionality to external applications. In this tutorial, we will learn …
Lập trìnhMap, filter và reduce với PHP – phần 3 – array_reduce July 22, 20183953 Views3 Comments Jared Chu PHP có sẵn một số hàm tính toán dựa trên giá trị các phần tử của mảng, ví dụ như: …
Lập trìnhMap, filter và reduce với PHP – phần 2 – array_filter June 20, 20182063 Views0 Comment Jared Chu Filter của PHP – array_filter array_filter lọc mảng đầu vào qua một hàm callback (hàm này trả về boolean nhé). Usage: array array_filter ( …
Recent Comments