Home
Helium
What is a Helium Hotspot?
How to Install a Helium Hotspot
Helium Maps and Elevation Measuring
Helium Hotspot Cables and Connections
Port Forwarding – Helium Miner
Things to Consider when installing a Helium Miner
Helium Hotspot Antenna Gallery
Best Stablecoin Investing Websites
Helium Staking
Crypto Blog
HotspotRF Referral code 2022
PHP
Php – Arrays
Php – Csv
Php – Dates & Time
Php – Email
Php – Loops
Php – Maths
Php – Miscellaneous
Php – Strings
Jquery
Jquery – Ajax
Jquery – Forms Posting
Jquery – Modals
Jquery – Strings
Jquery – Tricks
Jquery – Validation
Jquery – Variables
Jquery – Misc
MySQL
CSS
Javascript
WordPress
Admin – WP
WooCommerce
WordPress – Get
WordPress – Miscellaneous
WordPress – Show
Misc
Firefox
Python
Random Coding
Raspberry Pi
Reviews
SEO
SEO News
Sublime Text
Windows
Menu
Home
Helium
What is a Helium Hotspot?
How to Install a Helium Hotspot
Helium Maps and Elevation Measuring
Helium Hotspot Cables and Connections
Port Forwarding – Helium Miner
Things to Consider when installing a Helium Miner
Helium Hotspot Antenna Gallery
Best Stablecoin Investing Websites
Helium Staking
Crypto Blog
HotspotRF Referral code 2022
PHP
Php – Arrays
Php – Csv
Php – Dates & Time
Php – Email
Php – Loops
Php – Maths
Php – Miscellaneous
Php – Strings
Jquery
Jquery – Ajax
Jquery – Forms Posting
Jquery – Modals
Jquery – Strings
Jquery – Tricks
Jquery – Validation
Jquery – Variables
Jquery – Misc
MySQL
CSS
Javascript
WordPress
Admin – WP
WooCommerce
WordPress – Get
WordPress – Miscellaneous
WordPress – Show
Misc
Firefox
Python
Random Coding
Raspberry Pi
Reviews
SEO
SEO News
Sublime Text
Windows
Search
Generic filters
Hidden label
Exact matches only
Php - Strings
Append text file using form posting to self
Auto Random Text Creator – one word
Capital letters – Change string to UPPERCASE – PHP
Check if PHP array empty
Check if PHP variable contains specific text
Concatenate two variables to obtain one
Convert any format to UTF-8 using Iconv
Convert uploaded extension to lowercase
Create files from template – replace text
Delete line from text file that contains
Directory Paths – Current working
Does website contain string?
Encoding urls rawurlencode
Encrypt/Decrypt GET Urls
Escaping quote marks in php when sending links
Explode string into variables using separator
Fatal error: [] operator not supported for strings
Find all files in directory – with wildcard *
Find files with specific name – glob
Find the length of a string – PHP
Generate random number/string – UUID
Get all files in directory – Glob
Get contents
Get current working directory – getcwd()
Get position of string letters – Substr
How to display HTML tags when saved in PHP variable
Length of Text/String/Variable using PHP
List all files in directory
mysql_real_escape_string
Passing variables between pages – GET
Password encrypting MD5
Password Encryption using mcrypt
Percentage
Pound Sign encoding – fputcsv
printf – Format decimals – numbers
Random String – Php
Remove CR/LF linefeeds
Remove whitespace both sides
Remove whitespace from within a string
Replace all but 0-9 and a-z and spaces
Replace string character in PHP
Save each post collected as a variable
Search for multiple words in a string – PHP
Sentence case – PHP
Show files in a folder – scandir
Show Number as Decimal – Else show first number only
Show variable type in PHP
Sort files numerically – natsort
String contains a word – filter – find text pattern
String length if else
Strip HTML Tags in variable
Strpos – Find string in PHP variable – Contains
Take off / Get first 5 characters (substr)
Text file counter
Text file into dropdown – Specific lines
Text file Read – Create – Save write/delete fopen
Text File Read – Hitcounter increase count
Trim & Replace UK numbers – Php
Trim either end of whitespace – Php
Trim left and right strings – Take off letters – PHP
Trim up to a certain string
Trim White Space from variable
Upper/Lower Case letters convert PHP
Truncate string to certain length
19th July 2013
Php - Strings
$dog= 'Hello World hello everyone'; $string = substr($dog,0,4); echo $string;
1
2
3
4
5
6
7
$
dog
=
'Hello World hello everyone'
;
$
string
=
substr
(
$
dog
,
0
,
4
)
;
echo
$
string
;
Was this code snippet helpful?
Yes
0
No
0
Comment on this Code Snippet?
How to check if a checkbox has been ticked in Jquery
Firefox 89-100 (2022) Tabs on top/bottom not working fixed again
Slash canonicalization at the end of the URL – htaccess
Elementor json template files not uploading
Multiple featured images for blog posts
Autostart Browser in Kiosk Mode – Raspberry Pi 4 Terminal Command
Open Chromium full screen -Raspberry Pi (Kiosk mode)
Populate dropdown with data from database
Exclude a specific page from WordPress sitemap – wp-sitemap.xml
Firefox screenshot button missing – Version 88
Best FAQ Schema for Rich Results
WordPress sitemap not working after uninstalling Yoast
Send – Serialize form and send extra variables
Show time on Raspberry Pi from command line
wp-sitemap.xml not showing after disabling Yoast
WordPress app shows XML-RPC error
Recommended WordPress Security Headers in .htaccess
Basic Woocommerce Admin Tutorials
Get the ID of the last inserted record
Redirect your old website to other domain using .htaccess file
Import csv to phpmyadmin
Create a plugin with shortcode for Elementor – Most basic ever!
Add how many left in stock on products stock controlled only – Woocommerce
Add a dropdown to Woocommerce Checkout Fields