Extracting Part of a String with substr() : Sub string : String PHP Source Code
Ajax
Ajax Examples
Ajax Tutorials
Scripts and Programs
Javascript
Javascript Examples Tutorials
DHTML Tutorials
Javascript References
Scripts and Programs
HTML
HTML Tutorials
HTML References
HTML DOM 0 References
HTML DOM 2 References
CSS
CSS Tutorials
CSS References
PHP
PHP Source Code
PHP References
Scripts and Programs
C#
C# Source Code
C# Examples
PHP Source Code
»
String
»
Sub string
»
Extracting Part of a String with substr()
<?
$test =
"scallywag"
;
print substr
(
$test,
6
)
;
print substr
(
$test,
6
,
2
)
;
?>
HTML code for linking to this page:
Related in same category :
Substring replace
Substring count
substr($string, 3)
substr($String, 3, 5)
substr($String, -3, 5) (2)
substr($String, -3, -5) (3)
substr($String, 3, -5) (4)
PHP Function Reference -> Users Code Examples / Notes - > Sub string:
Note about nsapi_virtual and subrequests (PHP >= 4.3.3)
Note about nsapi_virtual and subrequests (PHP >= 4.3.3)
From strings
Strings
String access and modification by character
Converting to string
String conversion to numbers
IMAGE SUBMIT variable names
String Operators
__toString
User Submitted Data
bcsub
is_subclass_of
cpdf_set_subject
cpdf_stringwidth
variant_sub
dbx_escape_string
DOMCharacterData->substringData()
DomDocumentType->internal_subset()
fdf_open_string
fdf_save_string
fdf_set_submit_form_action
gmp_sub
HttpMessage::fromString
HttpMessage::toString
HttpQueryString
HttpQueryString::__construct
HttpQueryString::singleton
HttpQueryString::get
HttpQueryString::mod
HttpQueryString::set
HttpQueryString::toArray
HttpQueryString::toString
HttpQueryString::xlate
db2_escape_string
iconv_substr
imagecreatefromstring
imagestring
imagestringup
imap_getsubscribed
imap_listsubscribed
imap_lsub
imap_subscribe
imap_unsubscribe
maxdb_escape_string
maxdb_real_escape_string
SWFText->addString()
SWFText->addUTF8String()
SWFTextField->addString()
highlight_string
mssql_guid_string
Multibyte String Functions
mb_substitute_character
mb_substr_count
mb_substr
mysql_escape_string
mysql_real_escape_string
mysqli_escape_string
mysqli_real_escape_string
openssl_csr_get_subject
openssl_error_string
px_date2string
px_timestamp2string
parsekit_compile_string
PDF_pcos_get_string
PDF_set_info_subject
PDF_stringwidth
pg_escape_string
ps_string_geometry
ps_stringwidth
radius_cvt_string
radius_put_string
radius_put_vendor_string
recode_string
SAMConnection->subscribe()
SAMConnection->unsubscribe()
satellite_object_to_string
SDO_DAS_XML::loadString
SDO_DAS_XML::saveString
simplexml_load_string
CachingIterator::__toString
RecursiveIteratorIterator::getSubIterator
sqlite_error_string
sqlite_escape_string
sqlite_fetch_string
String Functions
convert_cyr_string
substr_compare
substr_count
substr_replace
substr
Subversion Functions
tidy_parse_string
tidy_repair_string
unicode_get_subst_char
unicode_set_subst_char
is_string
xdiff_string_diff_binary
xdiff_string_diff
xdiff_string_merge3
xdiff_string_patch_binary
xdiff_string_patch
xml_error_string
XMLWriter::setIndentString
yp_err_string
ZipArchive::addFromString
Variable substitution in strings
String Filters
PHP Source Code
String
»
Sub string
New Line
Replace
strcspn
String Case
String Compare
String Contains
String Count
String Escape
String Find
String Length
String Matches
String Operators
String Pad
String Repeat
String Replace
String Split
String Token
String Trim Chop
strpos
Sub string
Chart
Class
COM and .Net (Windows)
Components
Cookie Session
Data Structure
Databases
Design Patterns
Development
Email
File Directory
Form
Functions
Graphics Image
HTML
Language Basics
Login Authentication
Math
MySQL Database
Network
String
Web Services SOAP WSDL
XML