AgerNic.com/ro
WEB DEVELOPER SITE, HTML, CSS, PHP, SQL
Tutorial
Aceast? func?ie strpos () ne ajut? s? g?sim pozi?ia primei apari?ii a unui ?ir într-un alt ?ir. Aceasta returneaz? o valoare întreag? a pozi?iei primei apari?ii a ?irului. Aceast? func?ie este sensibil? între litere mari ?i mici, ceea ce înseamn? c? trateaz? diferit caracterele majuscule ?i cele minuscule.

Sintaxa:
strpos(original_str, search_str, start_pos)
Exemplu:
<?php
$caractere = "Buna dimineata Romania online!";

$rezultatul = strpos ( $caractere, R );
if ($rezultatul === false) {
echo 'Caracterul respective nu a fost gasit';
} else {
echo 'Caracterul respective a fost gasit la pozitia ' . $rezultatul;
}
?>
Tags: strpos(), functia, 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