W3schools Tutorials & Courses

Learn programming for free with our latest online learning resources with simple examples.

New & Trending Tutorials

PHP Examples

Remove Spaces From a String in PHP

Learn how to efficiently remove spaces from a string in PHP using built-in functions like trim(), str_replace(), and regular expressions for cleaner data and precise string manipulation.

PHP Examples

Reverse a String in PHP

Discover how to reverse a string in PHP with our easy tutorial. Learn both built-in functions and manual methods to implement string reversal effectively.

JSP

JSP - Cookies

Explore how to use cookies in JavaServer Pages (JSP) for session management, personalization, and tracking. Follow our step-by-step guide to create, retrieve, and delete cookies effectively.

CSS Examples

CSS Stripes Background

Learn how to enhance your website's design by creating horizontal, vertical, and diagonal striped backgrounds with simple code examples using CSS gradients.

PHP Examples

Printing Strings in PHP

Learn how to print a string in PHP using echo, print, and printf() function. Discover the nuances of string concatenation, embedding PHP in HTML, and debugging with print_r.