HS Banner
HS Codebank Articles
Page 1 of 1

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 More585

PHP Shuffle 09/11/2022

Description:

Randomizes the order of the elements in an array.

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

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 More482



List All Files in a Directory Using PHP 04/05/2022

Description:

In PHP there are several ways to get a list of files in a PHP application.

Author: Admin
Language: PHP
Tags: list files directory php glob scandir opendir readdir closedir filesystemiterator
Read More459

Webserver Class 04/15/2021

Description:

This is a simple http webserver class I found years ago.

Author: Guitarman
Language: C#
Tags:
Read More375

SHA256 Class 03/19/2021

Description:

Computes the SHA256 hash for the input data.

Author: admin
Language: C#
Tags: cs
Read More371

Submit Your Code

If you would like to share your code on HS Codebank you can submit it by registering and clicking the submit article button on this page.
LoginRegisterContact Us

List of Supported Languages
Apache Config
Bash
C
C#
C++
CoffeeScript
CSS
Diff
GO
HTML, XML
HTTP
Java
JavaScript
JSON
Kotlin
Less
Lua
Makefile
Markdown
Nginx Config
NSIS
Objective-C
Perl
PHP
Plain Text
PowerShell
Properties
Python
Python REPL
R
Ruby
Rust
SCSS
Shell Session
SQL
Swift
TOML, also INI
TypeScript
VB Script
Visual Basic .NET
YAML
Request New Language