get number in html code

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
pedroz
Forum Commoner
Posts: 99
Joined: Thu Nov 03, 2005 6:21 am

get number in html code

Post by pedroz »

i have the following html...

<a href="page1.htm"><span class="pagelink">1</span></a>

<span class="pagelink">2</span>

<a href="page3.htm"><span class="wp-pagelink">3</span></a>

How can I get the number 2 with php?
User avatar
DigitalMind
Forum Contributor
Posts: 152
Joined: Mon Sep 27, 2010 2:27 am
Location: Ukraine, Kharkov

Re: get number in html code

Post by DigitalMind »

It's impossible without js
Post Reply