Question: I realize that "eval" largely fills the role of the C++ #define feature, but how would I do something like this in PHP:

```
#define D(x,y) if (N==x) return(y); else {
void Sample(int N) {
  D(3)
    D(4)
      D(22)
    }
  }
}

```

My problem is that eval("return;") will just return from eval, not from the calling routine. My other problem is parameterizing the macro.

Answer: 
This should work to select all:

```
$('a').each(function() { $(this).text(); /* do something with it */ });

```

if you want to get the click event on anchor tags, but only those without an id or class, try this:

```
$('a').not('a[id]').not('a[class]').click(function() { $(this).text(); ... });

```

and if you only want your action to be performed once:

```
$('a').not('a[id]').not('a[class]').one("click", function() { $(this).text(); ... });

```
You can use any CSS selector that matches these tags to get a jQuery object for them.

You can then use [`text()`](http://docs.jquery.com/Attributes/text) to get the contents of a tag in plain text, or [`html()`](http://docs.jquery.com/Attributes/html) to get the direct html code, including any nested tags.

Example:

```
$('a').each(function() {
     alert($(this).text());
});

```