Search found 2 matches

by Muyong
Tue Sep 05, 2006 12:50 am
Forum: PHP - Code
Topic: Type conversion and efficiency
Replies: 4
Views: 4162

I'd use whatever is more readable, and only worry for efficiency if it is inside a three-layered loop or something.
Yes, I agree with you. Thanks for all comments.
by Muyong
Mon Sep 04, 2006 3:44 am
Forum: PHP - Code
Topic: Type conversion and efficiency
Replies: 4
Views: 4162

Type conversion and efficiency

Hello, this is my first time here. I just discovered this place and think it's very great. I have a few questions to ask but I will start with this one. I wonder which method below is more efficient. First method if($somesting){ ...... ...... } Second method if($somestring!=''){ ...... ...... } The ...