php


Insert image into html code variable


I have a PHP variable like this:
Ex1:
$data = '<p>This is paragraph.</p>
<p title="not-special">No!</p>
';
Ex2:
$data = '<p>This is paragraph.</p>
<p title="special">Yes!</p>
';
I want to have a php function, that checks whether there's p element with title="special", and if so, insert div element "YAP!".
How can this be done?

Related Links

How to execute Jess in php
How to get different Wordpress category links within one php file?
What should an HTML 5 form submit when no value is set [duplicate]
How to present enum table property in Laravel Model
Send request “post” with hidden field and wordpress
PHP and MySQL pagination issue
php - performance of continue state
ZF2 Model getters and setters mismatching form element names
Selecting and matching data from 3 tables
How to get the request data in codeigniter
Format dynamic ul list generated by php
python doesn't write if call from php
while loop and session fix code
WP All Imports Custom Function
Login with Nativescript and Prestashop
Php Socket Programming Connection times out escpos-php

Categories

HOME
apache-nifi
lambda
key
message-queue
adobe
ios-simulator
typeerror
yql
malware
cryptography
openflow
flurry
navigation
cocotb
reportviewer
fasm
powermock
sql-injection
max-msp-jitter
asciimath
spam
tableview
hdl
el
perfino
mod-wsgi
raima
tracing
prompt
python-appium
offline-caching
msdeploy
annotation-processing
tsung
splunk-query
xenapp
reporting
john-the-ripper
om-next
orchardcms-1.8
export-to-pdf
fluid-mac-app-engine
morphline
windows-media-player
django-static-precompiler
stateless-session-bean
network-protocols
sesame
word-2016
emf-compare
thread-exceptions
tsqlt
mathml
oci
fragmentstatepageradapter
sharepoint-apps
android-async-http
openmrs
ioexception
ajax4jsf
helm
largenumber
dynamics-ax-2012-r2
sequence-sql
tree-structure
scala-swing
rfc5545
tidyr
nsmutabledata
datagridcomboboxcolumn
relationships
.htpasswd
commenting
preorder
wso2bam
particle-swarm
mp4parser
microformats
chartfx
rikulo
html-frames
session-0-isolation
office-app
smartfox
jquery-dialog
audiotoolbox
msinfo32
gamesalad
snackjs
sql-parametrized-query
grails-validation
channelfactory
active-record-query
ccnet-config
j2mepolish
accumulator
isapi-redirect
chronic

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App