Posts for Ariessa Norramli

Programmer | Writer | bitsized dot me at gmail dot com

How to Download File in Javascript

In this article, you will learn how to download a file in Javascript. Let’s say you want to download Codesource.io’s logo. Download File In order to download a file, you can use the HTML’s download attribute. Note: The HTML’s download attribute functions by downloading the supplied file URL upon clicking.

March 6, 2021 in Code examples

How to Validate Email in Javascript

In this article, you will learn how to validate an email in Javascript. Validate Email In order to validate email, you can use the regular expression and test() method. Note: The regular expression is a sequence of characters used as a search pattern. The test() method functions by testing for a match in the supplied […]

March 6, 2021 in Code examples

How to Check For Array Equality in Javascript

In this article, you will learn how to check for array equality in Javascript. Let’s say you have 3 arrays. Check For Array Equality In order to check for array equality, you can use the Array.length property and Array.every() method. Note: The Array.length property functions by returning the length of the array. The Array.every() method […]

March 6, 2021 in Code examples

How to Make Simple Photo Gallery in PHP

In this article, you will learn how to make a simple photo gallery in PHP.  Simple Photo Gallery In order to make a simple photo gallery, you can use the glob() method, GLOB_BRACE flag and basename() method. Result Note: The glob() method functions by searching for path names that match the supplied pattern. The GLOB_BRACE […]

March 6, 2021 in Code examples

How to Post JSON Data Using cURL in PHP

In this article, you will learn how to post JSON data using cURL in PHP. cURL command is usually used to transfer data to and from a server. Post JSON Data Using cURL In order to post JSON data using cURL, you can use the curl_init() method, curl_setopt() method, curl_exec() method, and curl_close() method. Note: […]

March 6, 2021 in Code examples

How to Read RSS Feed in PHP

In this article, you will learn how to read an RSS feed in PHP.  RSS stands for Really Simple Syndication and it is a web feed that allows subscribers to get updates from multiple websites on a single page. Read RSS Feed In order to read an RSS feed, you can use the file_get_contents() method […]

March 6, 2021 in Code examples