Find Jobs
Hire Freelancers

Write some Software

$10-30 USD

Đã hủy
Đã đăng vào khoảng 8 năm trước

$10-30 USD

Thanh toán khi bàn giao
Greetings I would like a script which will read a PHP var and look for some certain tags and replace them to format it… some thing like this: $originaltxt = ‘Hello! this is my picture <format type="table" name="My Picture" image="[login to view URL]" caption="I look tired" /> But I look better in real life’ The script should look for all the ‘format’ tags (or whatever is simpler), get the ‘type’, ‘name’, ‘image’ and ‘caption’ vars from each ‘format’ tag and place them something like this: echo $originaltxt; It displays this: Hello! this is my picture <table width="100%" border="0"> <tr> <td> My Picture </td> </tr> <tr> <td><img scr=”[login to view URL]”></td> </tr> <tr> <td> I look tired </td> </tr> </table> But I look better in real life So this script must read all of them so I can give different formats depending on the "type" value, which I could use like this: if ($type == 'table') { $newformat = '<table width="100%" border="0"> <tr> <td>'.$name.'</td> </tr> <tr> <td><img scr=”'.$image.'”></td> </tr> <tr> <td>'.$caption.'</td> </tr> </table>'; $originaltxt = str_replace($originaltxt, $newformat, $originaltxt); }
Mã dự án: 9754460

Về dự án

3 đề xuất
Dự án từ xa
Hoạt động 8 năm trước

Bạn muốn kiếm tiền?

Lợi ích khi chào giá trên Freelancer

Thiết lập ngân sách và thời gian
Nhận thanh toán cho công việc
Phác thảo đề xuất của bạn
Miễn phí đăng ký và cháo giá cho công việc
3 freelancer chào giá trung bình $38 USD cho công việc này
Avatar người dùng
Hi! I can do this using the php class "DOMDocument". If you choose me, I'm already working on it. I can delivery the code to you very quickly. Using "str_replace" or regex to do this job isn't a good idea.
$35 USD trong 1 ngày
5,0 (5 nhận xét)
3,5
3,5

Về khách hàng

Cờ của MEXICO
Matamoros, Mexico
5,0
16
Phương thức thanh toán đã xác thực
Thành viên từ thg 12 5, 2011

Xác thực khách hàng

Cảm ơn bạn! Chúng tôi đã gửi email chứa đường link để bạn lấy tín dụng miễn phí.
Đã xảy ra lỗi trong khi gửi email của bạn. Hãy thử lại.
Người Dùng Đã Đăng Ký Tổng Số Việc Đã Đăng
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Đang tải xem trước
Đã cấp quyền truy cập vị trí.
Phiên đăng nhập của bạn đã hết hạn và bạn đã bị đăng xuất. Hãy đăng nhập lại.