Yok hocam zaten demis a, b'ye esitse ve ayni tipteler ise...
a = 0;
b = '0'

if a==b olsa sorun yok.
hata normal stringi compare etmeye calismamda.

ama cozum :
if ( !strcmp($g_veri, $b))  

On Wed, 2012-02-01 at 22:38 +0200, Ali Rıza KELEŞ wrote:

> Merhaba,
> 
> 2012/2/1 Atıf CEYLAN <[email protected]>
> >
> >
> > $g_veri = (int)$_POST['olmayan_dizi_elemani'];
> > echo $g_veri;
> > $b = 'ne yazarsan yaz';
> > if ( $g_veri == $b )
> 
> if ( $g_veri === $b )
> 
> şeklinde deneyin.. Üç eşit işareti.
> 
> http://www.php.net/manual/en/language.operators.comparison.php
> $a === $b     Identical       TRUE if $a is equal to $b, and they are of the 
> same type.
> 
> 
> > {
> > echo ' - A ';
> > }else{
> > echo ' - B ';
> > }
> > echo $b;
> >
> > SONUC : 0 - A ne yazarsan yaz
> >
> 
> 
> --
> --
> Ali Rıza Keleş
> _______________________________________________
> Linux-programlama mailing list
> [email protected]
> https://liste.linux.org.tr/mailman/listinfo/linux-programlama
> Liste kurallari: http://liste.linux.org.tr/kurallar.php


-- 

/**
 * @author Atıf CEYLAN
 * Software Developer & System Admin
 * http://www.atifceylan.com
 */
_______________________________________________
Linux-programlama mailing list
[email protected]
https://liste.linux.org.tr/mailman/listinfo/linux-programlama
Liste kurallari: http://liste.linux.org.tr/kurallar.php

Cevap