Top "Function" questions

A function (also called a procedure, method, subroutine, or routine) is a portion of code intended to carry out a single, specific task.

How to return a string value from a Bash function

I'd like to return a string from a Bash function. I'll write the example in java to show what I'd …

string bash function return-value
How can I handle the warning of file_get_contents() function in PHP?

I wrote a PHP code like this $site="http://www.google.com"; $content = file_get_content($site); echo $content; But …

php function exception-handling warnings
What is the difference between a "function" and a "procedure"?

Generally speaking, we all hear about the functions or procedures in programming languages. However, I just found out that I …

function terminology procedure
jQuery 1.9 .live() is not a function

I recently updated jQuery from 1.8 to 2.1. I suddenly discovered that the .live() stops working. I get the error TypeError: $(...).live …

javascript jquery function live deprecated
Stopping a JavaScript function when a certain condition is met

I can't find a recommended way to stop a function part way when a given condition is met. Should I …

javascript function exit breadcrumbs
Call a function with argument list in python

I'm trying to call a function inside another function in python, but can't find the right syntax. What I want …

python function
How can I view the source code for a function?

I want to look at the source code for a function to see how it works. I know I can …

r function r-faq
How to turn a String into a JavaScript function call?

I got a string like: settings.functionName + '(' + t.parentNode.id + ')'; that I want to translate into …

javascript function
"Parameter" vs "Argument"

I got parameter and argument kind of mixed up and did not really pay attention to when to use one …

function parameters language-agnostic arguments terminology
How to send an email with Python?

This code works and sends me an email just fine: import smtplib #SERVER = "localhost" FROM = '[email protected]' TO = ["jon@…

python email function smtplib