flag
Mon. - Fri. 09:00 - 17:30

ทุกข้อสงสัยมีคำตอบ

php ใช้ json_encode กับข้อมูลภาษาไทยแล้วไม่ขึ้นภาษาไทยแก้ไขอย่างไร

ให้เพิ่มตัวแปรตามนี้ครับ

json_encode($array, JSON_UNESCAPED_UNICODE);

https://www.regextester.com

หรือสามารถใช้คำสั่งนี้ 

นำไปปรับใช้ได้เช่นกันครับ code ชุดหลังนี้มาจาก 
https://codingbeautydev.com/blog/javascript-check-if-string-contains-only-letters-and-spaces/

body { margin: 0; padding: 2rem; }
table { text-align: left; position: relative; border-collapse: collapse; }
th, td { padding: 0.25rem; }
tr.red th { background: red; color: white; }
tr.green th { background: green; color: white; }
tr.purple th { background: purple; color: white; }
th { background: white; position: sticky; top: 0; /* Don't forget this, required for the stickiness */ box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.4); }

https://css-tricks.com/position-sticky-and-table-headers/

https://github.com/moxiecode/plupload

$txt = 'ทดสอบ';
$txt = iconv( mb_detect_encoding($txt), 'Windows-874', $txt);

///////////

mb_detect_encoding($txt) // return encodeing

Add Node

autocomplete="new-password"

Example : < input  autocomplete="new-password" .....>

เรียกใช้คำสั่งง่ายๆด้วย

echo strip_tags($text);

กรณีที่ต้องการเปิดยอมรับ tags ที่ไม่ต้องการให้ลบก็เรียกใช้แบบนี้

โดยการกำหนดค่าแท็ก Open Graph protocol ก็จะมีด้วยกันดังนี้

Document List
https://ogp.me/

Debugs Tools Cache
https://poker.line.naver.jp/

ที่มา – Developers.line.biz/en/faq/tags/

function wget($address,$filename)
{
  file_put_contents($filename,file_get_contents($address));
}

เรียกใช้งานแบบนี้

wget(URL, FileName);

 

Class สำหรับ wget

https://gist.github.com/alash3al/aafe8ffa0a6ca12eb35f

$number = -10;
echo abs( $number );

แบ่งหน้าได้ง่ายๆเพียงใส่ css (page-break-after: always)

	Page 1
	<div style="page-break-after: always"></div>
	Page 2
	<div style="page-break-after: always"></div>
	Page 3

$date=date_create("2013-03-15");
echo date_format($date,"Y/m/d H:i:s");

แหล่งที่มาที่น่าสนใจ

https://stackoverflow.com/questions/14153207/i-want-to-show-pdf-ajax-response-in-a-modal-window

If you want any of these characters displayed in HTML, you can use the HTML entity found in the table below.
If the character does not have an HTML entity, you can use the decimal (dec) or hexadecimal (hex) reference.



https://www.w3schools.com/charsets/ref_utf_dingbats.asp

Instead of step="any", which allows for any number of decimal places, use step=".01", which allows up to two decimal places.

More details in the spec: https://www.w3.org/TR/html/sec-forms.html#the-step-attribute

ตัวอย่างการเรียกใช้งาน

https://api.jquery.com/jquery.ajax/

รูปแบบการนำไปใช้งานคือ

date('jS F Y')

อ่านคู่มือเต็มๆตามลิ้งค์ https://www.php.net/manual/en/function.date.php

การกำหนด border ใน css สำหรับพิมพ์เอกสารจาก html หน้าเว็บ ช่วยให้สามารถกำหนดสีของเส้น border ได้

กำหนด css เมื่อพิมพ์เอกสารแล้วให้ตั้งค่าเริ่มต้นเป็น กระดาษแนวนอน

Register

Aosoft.co.th

Complete Registration!