AgerNic.com/ro
WEB DEVELOPER SITE, HTML, CSS, PHP, SQL
Tutorial
Funcția str_word_count() este o funcție încorporată în PHP și este utilizată pentru a returna informații despre cuvintele utilizate într-un șir, cum ar fi cuvântul cu număr total din șir, pozițiile cuvintelor din șir etc.

Sintaxa:
str_word_count ( $string , $returnVal, $chars )
Exemplu:
<?php
echo "<pre>";
echo str_word_count("Hello world!");
echo "<br /><br />";
print_r(str_word_count("Romania online & invata PHP cu agernic.com/ro", 2));
print_r(str_word_count("Romania online & buna dimineata!",1));
print_r(str_word_count("Romania online & buna dimineata!",1,"&"));
echo "</pre>";
?>
Tags: str_word_count(), 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.