HS Banner
HS Codebank Articles
Page 1 of 4

Add a new item to an array, it can be inserted with the help of array_splice() a function of PHP. 09/09/2023

Description:

This function removes a portion of an array and replaces it with something else. If offset and length are such that nothing is removed, then the elements from the replacement array are inserted in the place specified by the offset.

Author: Admin
Language: PHP
Tags: array php insert array_splice
Read More31

User-defined functions 07/08/2023

Description:

User-defined function are used to preform task in PHP code like saving a user's form input to a database.

Author: Admin
Language: PHP
Tags: functions php
Read More38

Unique Random Numbers Within a Range 04/23/2023

Description:

Here's a nice function I found to get 10 unique numbers from a range of numbers.

Author: Admin
Language: PHP
Tags: random numbers range php
Read More42



PHP Speller 03/26/2023

Description:

PHP spell check library.

Author: Admin
Language: PHP
Tags: php spell check
Read More84

PHP Tags 03/07/2023

Description:

When PHP parses a file, it looks for opening and closing tags, which tell PHP to start and stop interpreting the code between them. Parsing in this manner allows PHP to be embedded in all sorts of different documents, as everything outside of a pair of opening and closing tags is ignored by the PHP parser.

Author: Admin
Language: PHP
Tags: php tags
Read More116

PHP Crypt 02/11/2023

Description:

crypt() will return a hashed string using the standard Unix DES-based algorithm or alternative algorithms. password_verify() is compatible with crypt(). Therefore, password hashes created by crypt() can be used with password_verify().

Author: Admin
Language: PHP
Tags: php crypt hash password
Read More78

PHP Tutorial With W3 Schools 12/30/2022

Description:

Here's a nice tutorial for developing in PHP.

Author: Admin
Language: Plain Text
Tags: php tutorial developing
Read More148



PHP Shuffle 09/11/2022

Description:

Randomizes the order of the elements in an array.

Author: Admin
Language: PHP
Tags: php shuffle array
Read More440

Start and Setup a PHP Session 07/27/2022

Description:

Here's how I start and setup a session for a PHP app.

Author: Admin
Language: PHP
Tags: session php
Read More378

Populate HTML Table on Page Load. 06/17/2022

Description:

Here's a simple way to populate an HTML table on page load using PHP.

Author: Admin
Language: PHP
Tags: html php table foreach
Read More419