Want to become a Vibe Coder? Join Vibe Coding Training here
x
C# Corner
Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Get a Partial String, Upper Case, Lower Case From Within Your Own Name and Print it to the Screen Using PHP
WhatsApp
Darin
Dec 14
2015
1.6
k
0
0
Functions in PHP.zip
<html>
<p>
<?php
// Get a partial string from within your own name
// and print it to the screen!
$myname
=
"daRin"
;
$partial
=
substr
(
$myname
,0,3);
print
$partial
;
?>
</p>
<p>
<?php
// Make your name upper case and print it to the screen:
$uppercase
=
strtoupper
(
$myname
);
print
$uppercase
;
?>
</p>
<p>
<?php
// Make your name lower case and print it to the screen:
$lowercase
=
strtolower
(
$myname
);
print
$lowercase
;
?>
</p>
</html>
partial string
upper case
lower case
PHP
Up Next
Get a Partial String, Upper Case, Lower Case From Within Your Own Name and Print it to the Screen Using PHP