AgerNic.com/ro
WEB DEVELOPER SITE, HTML, CSS, PHP, SQL
Tutorial
Func?ia trim() elimin? spa?iul alb ?i alte caractere predefinite din ambele p?r?i ale unui ?ir, anume, de la inceputul si sfarsitul unui sir de caractere.

Func?ii conexe:

ltrim () - Elimin? spa?iul alb sau alte caractere predefinite din partea stâng? a unui ?ir
rtrim () - Elimin? spa?iul alb sau alte caractere predefinite din partea dreapt? a unui ?ir
Exemplu:
<?php 
$abc = "Buna Romania!";
echo $abc. "<br>";
echo trim($abc, "Bua!");
?>
Tags: trim(), exemple

Online Editor
ONLINE EDITOR

news templates


COLOR PICKER

news templates
This tool makes it easy to create, adjust, and experiment with custom colors for the web.


HTML Templates
news templates
Magnews2 is a modern and creative free magazine and news website template that will help you kick off your online project in style.


CSS HTML Layout
news templates
Find here examples of creative and unique website layouts.


Free CSS HTML Menu
news templates
Find here examples of creative and unique website CSS HTML menu.


Online Editor
ONLINE EDITOR

news templates


COLOR PICKER

news templates
This tool makes it easy to create, adjust, and experiment with custom colors for the web.


HTML Templates
news templates
Magnews2 is a modern and creative free magazine and news website template that will help you kick off your online project in style.


CSS HTML Layout
news templates
Find here examples of creative and unique website layouts.


Free CSS HTML Menu
news templates
Find here examples of creative and unique website CSS HTML menu.


analytics piwika