News:

Please note these forums are mostly a testing ground for my SMF work and I don't really use them otherwise.

Main Menu

Paste-1192761084:v:use_geshi-1:v:type-php

Started by Guest, Oct 19, 2007, 02:31 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Guest

<?php
error_reporting(E_ALL);

$a = 'jay';
$b = 'a';
echo strpos($a, $b);
echo '
';

$a = '';
$b = 'a';
echo strpos($a, $b) == false ? 'false' : 'true';

$a = 'jay';
$b = '';
echo strpos($a, $b);
?>