Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

if any comma in string in php

php function strpos return position of string if it's not false or -1 then your string contain character.

$searchForValue = ',';
$stringValue = '115,251';

if( strpos($stringValue, $searchForValue) !== false ) {
     echo "Found";
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #comma #string #php
ADD COMMENT
Topic
Name
3+5 =