473,385 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Why put '@' symbol while returning a function in PHP?

Prakash Gnana
Consider the following code,
Expand|Select|Wrap|Line Numbers
  1.  
  2. function rd($id)
  3. {
  4.   global $se;
  5.   $se1 = $se."/".$id;
  6.   return (string) @get_contents($se1);
  7. }
  8.  
In this function, can you tell me what is the need to include '@' symbol at line 6?
Mar 15 '11 #1
2 1866
code green
1,726 Expert 1GB
It is for suppressing error messages
http://php.net/manual/en/language.op...rorcontrol.php
Mar 15 '11 #2
Thank you very much........................
Mar 15 '11 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: ezra epstein | last post by:
I'm been banging my head over this for a little while now. Here's a simple function to return a record: <code> CREATE OR REPLACE FUNCTION create_item_record_for_override(INTEGER, VARCHAR )...
4
by: yuyang08 | last post by:
Hello, everyone, I am wondering what is the hash function that is used in hash_map/hash_set. Can I replace it with my own hash function? Any comments on this? Thanks! -Andy
7
by: lovecreatesbea... | last post by:
K&R 2, sec. 5.11 says that no need to precede function and array names with address-of operators &, why?
2
by: abcjayati | last post by:
hi! can you tell me what is a recrusive function? and what it does? and there are some lines in this small program that i could not understand (followed by???????) can u plz explain me those lines?...
11
by: jza | last post by:
Hello all, I am fairly new to c, coming from a Java background. I am working on a mathematical program and I have a function that needs to return a 2-d array. After some web searching, I have...
10
by: Pradyut Bhattacharya | last post by:
Hi, in this program i cannot retrive the values from the pointer j.... The code :- --------------------------------------------------------------------------------------------------------------...
4
by: zweety | last post by:
what is the function of # symbol in C. for eg:# include<stdio.h>.this statement is used for linking the i/p nd o/p fns in the pgm to the header file.is this # is the directive.somebody said to me...
4
by: dolphin | last post by:
Hi All I read a .cpp files,find that static void fun(void){......} int main() { .......... } What does this static function mean?Is it the same as the static
5
by: aewhale | last post by:
I have a monitoring script which I am trying to better understand. One of the queries is built as follows: # delete any rows that expired more than a year ago my $rows = $dbh->do("DELETE FROM...
1
by: soospecial81 | last post by:
This lab will allow you to practice using value returning functions Please read all directions before beginning. You will turn in two programs (L5_P1.cpp and L5_P2.cpp). Be sure to include you and...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.